POST V3/odata/Department

Inserts Department entity

Request Information

URI Parameters

None.

Body Parameters

QicsUnity.Api.Areas.V3.Models.Department
NameDescriptionTypeAdditional information
DepartmentId

Gets or sets the DepartmentId

integer

Required

64-bit signed integer

Name

Gets or sets name of the Department

string

Required

CompanyId

Gets or sets CompanyId

integer

Required

64-bit signed integer

Request Formats

application/json, text/json

Sample:
{
  "DepartmentId": "1",
  "Name": "sample 2",
  "CompanyId": "3"
}

application/xml, text/xml

Sample:
<Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models">
  <CompanyId>3</CompanyId>
  <DepartmentId>1</DepartmentId>
  <Name>sample 2</Name>
</Department>

Response Information

Resource Description

QicsUnity.Api.Areas.V3.Models.Department
NameDescriptionTypeAdditional information
DepartmentId

Gets or sets the DepartmentId

integer

Required

64-bit signed integer

Name

Gets or sets name of the Department

string

Required

CompanyId

Gets or sets CompanyId

integer

Required

64-bit signed integer

Response Formats

application/json, text/json

Sample:
{
  "DepartmentId": "1",
  "Name": "sample 2",
  "CompanyId": "3"
}

application/xml, text/xml

Sample:
<Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models">
  <CompanyId>3</CompanyId>
  <DepartmentId>1</DepartmentId>
  <Name>sample 2</Name>
</Department>