POST api/Department/Add

Request Information

URI Parameters

None.

Body Parameters

DepartmentAddDto
NameDescriptionTypeAdditional information
Name

string

None.

CompanyID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "companyID": "2d518c83-14c9-4631-9b32-4d7f2e5af39a"
}

application/xml, text/xml

Sample:
<DepartmentAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs">
  <CompanyID>2d518c83-14c9-4631-9b32-4d7f2e5af39a</CompanyID>
  <Name>sample string 1</Name>
</DepartmentAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"name":"sample string 1","companyID":"2d518c83-14c9-4631-9b32-4d7f2e5af39a"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.