POST api/Category/Add

Request Information

URI Parameters

None.

Body Parameters

CategoryAddDto
NameDescriptionTypeAdditional information
CategoryType

CategoryType

None.

Name

string

None.

ParentID

globally unique identifier

None.

CompanyID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "categoryType": 1,
  "name": "sample string 1",
  "parentID": "c62c8184-d252-4337-ba81-5f61606702b3",
  "companyID": "fb90d2ec-19ae-4640-aeb9-9a84f77af64d"
}

application/xml, text/xml

Sample:
<CategoryAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs">
  <CategoryType>Customer</CategoryType>
  <CompanyID>fb90d2ec-19ae-4640-aeb9-9a84f77af64d</CompanyID>
  <Name>sample string 1</Name>
  <ParentID>c62c8184-d252-4337-ba81-5f61606702b3</ParentID>
</CategoryAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"categoryType":1,"name":"sample string 1","parentID":"c62c8184-d252-4337-ba81-5f61606702b3","companyID":"fb90d2ec-19ae-4640-aeb9-9a84f77af64d"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.