PUT api/Department

Update Department

Request Information

URI Parameters

None.

Body Parameters

DepartmentInsertUpdateRequestModel
NameDescriptionTypeAdditional information
DepartmentID

integer

None.

Code

string

None.

Name

string

None.

Description

string

None.

CompanyID

integer

None.

IsActive

integer

None.

IsDeleted

integer

None.

ChangedBy

integer

None.

DepartmentTypeID

integer

None.

DepartmentParentID

integer

None.

SelectedEstablishmentType

Collection of integer

None.

SelectedEstablishmentTypes

string

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "departmentID": 1,
  "code": "sample string 1",
  "name": "sample string 2",
  "description": "sample string 3",
  "companyID": 1,
  "isActive": 4,
  "isDeleted": 5,
  "changedBy": 6,
  "departmentTypeID": 1,
  "departmentParentID": 1,
  "selectedEstablishmentType": [
    1,
    2
  ],
  "selectedEstablishmentTypes": "sample string 7"
}

application/xml, text/xml

Sample:
<DepartmentInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel">
  <ChangedBy>6</ChangedBy>
  <Code>sample string 1</Code>
  <CompanyID>1</CompanyID>
  <DepartmentID>1</DepartmentID>
  <DepartmentParentID>1</DepartmentParentID>
  <DepartmentTypeID>1</DepartmentTypeID>
  <Description>sample string 3</Description>
  <IsActive>4</IsActive>
  <IsDeleted>5</IsDeleted>
  <Name>sample string 2</Name>
  <SelectedEstablishmentType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </SelectedEstablishmentType>
  <SelectedEstablishmentTypes>sample string 7</SelectedEstablishmentTypes>
</DepartmentInsertUpdateRequestModel>

multipart/form-data

Sample:
<DepartmentInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><ChangedBy>6</ChangedBy><Code>sample string 1</Code><CompanyID>1</CompanyID><DepartmentID>1</DepartmentID><DepartmentParentID>1</DepartmentParentID><DepartmentTypeID>1</DepartmentTypeID><Description>sample string 3</Description><IsActive>4</IsActive><IsDeleted>5</IsDeleted><Name>sample string 2</Name><SelectedEstablishmentType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:long>1</d2p1:long><d2p1:long>2</d2p1:long></SelectedEstablishmentType><SelectedEstablishmentTypes>sample string 7</SelectedEstablishmentTypes></DepartmentInsertUpdateRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>