PUT api/organization/departments/{id}

Updates a department by ID.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Existing department ID.

integer

Required

Body Parameters

Department data to update.

DepartmentUpdateDTO
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DepartmentUpdateDTO'.

Response Information

Resource Description

None.