PUT api/organization/departments/{id}
Updates a department by ID.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Existing department ID. |
integer |
Required |
Body Parameters
Department data to update.
DepartmentUpdateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name |
string |
None. |
| DepartmentType |
Type |
DepartmentTypeDTO |
None. |
| DepartmentStatus |
Status |
DepartmentStatusDTO |
None. |
| TimeZone |
Department's timezone. |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"DepartmentType": 0,
"DepartmentStatus": 0,
"TimeZone": 2
}
text/html
Sample:
{"Name":"sample string 1","DepartmentType":0,"DepartmentStatus":0,"TimeZone":2}
application/xml, text/xml
Sample:
<DepartmentUpdateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs"> <DepartmentStatus>Active</DepartmentStatus> <DepartmentType>Department</DepartmentType> <Name>sample string 1</Name> <TimeZone>2</TimeZone> </DepartmentUpdateDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.