PUT api/Department

Edits an existing Department.

Request Information

URI Parameters

None.

Body Parameters

Department.

Department
NameDescriptionTypeAdditional information
UpdateType

string

None.

DepartmentId

integer

None.

DepartmentName

string

None.

UpdatedDate

date

None.

UpdatedBy

string

None.

UpdatedByName

string

None.

EmployeeCount

integer

None.

GlobalId

string

None.

OrganizationId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UpdateType": "sample string 1",
  "DepartmentId": 2,
  "DepartmentName": "sample string 3",
  "UpdatedDate": "2025-01-16T06:40:04.5656821+00:00",
  "UpdatedBy": "sample string 4",
  "UpdatedByName": "sample string 5",
  "EmployeeCount": 1,
  "GlobalId": "sample string 6",
  "OrganizationId": 1
}

application/xml, text/xml

Sample:
<Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <DepartmentId>2</DepartmentId>
  <DepartmentName>sample string 3</DepartmentName>
  <EmployeeCount>1</EmployeeCount>
  <GlobalId>sample string 6</GlobalId>
  <OrganizationId>1</OrganizationId>
  <UpdateType>sample string 1</UpdateType>
  <UpdatedBy>sample string 4</UpdatedBy>
  <UpdatedByName>sample string 5</UpdatedByName>
  <UpdatedDate>2025-01-16T06:40:04.5656821+00:00</UpdatedDate>
</Department>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Department
NameDescriptionTypeAdditional information
UpdateType

string

None.

DepartmentId

integer

None.

DepartmentName

string

None.

UpdatedDate

date

None.

UpdatedBy

string

None.

UpdatedByName

string

None.

EmployeeCount

integer

None.

GlobalId

string

None.

OrganizationId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "UpdateType": "sample string 1",
  "DepartmentId": 2,
  "DepartmentName": "sample string 3",
  "UpdatedDate": "2025-01-16T06:40:04.5656821+00:00",
  "UpdatedBy": "sample string 4",
  "UpdatedByName": "sample string 5",
  "EmployeeCount": 1,
  "GlobalId": "sample string 6",
  "OrganizationId": 1
}

application/xml, text/xml

Sample:
<Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <DepartmentId>2</DepartmentId>
  <DepartmentName>sample string 3</DepartmentName>
  <EmployeeCount>1</EmployeeCount>
  <GlobalId>sample string 6</GlobalId>
  <OrganizationId>1</OrganizationId>
  <UpdateType>sample string 1</UpdateType>
  <UpdatedBy>sample string 4</UpdatedBy>
  <UpdatedByName>sample string 5</UpdatedByName>
  <UpdatedDate>2025-01-16T06:40:04.5656821+00:00</UpdatedDate>
</Department>