GET api/UserManagement/CreateDepartment?departmentName={departmentName}

Create new department for logged in user's organization.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
departmentName

Department name

string

Required

Body Parameters

None.

Response Information

Resource Description

Department details

ResponseOfDepartment
NameDescriptionTypeAdditional information
StatusCode

StatusCode

None.

Message

string

None.

Data

Department

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1000,
  "Message": "sample string 1",
  "Data": {
    "DepartmentId": 1,
    "Name": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<ResponseOfDepartmentkvwhp91_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User">
    <d2p1:DepartmentId>1</d2p1:DepartmentId>
    <d2p1:Name>sample string 3</d2p1:Name>
    <d2p1:OrganizationId>2</d2p1:OrganizationId>
  </Data>
  <Message>sample string 1</Message>
  <Result />
  <StatusCode>Success</StatusCode>
</ResponseOfDepartmentkvwhp91_P>