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": "da5d5bf4-8926-456d-8929-ea9f241a44b4",
  "companyID": "465e07d4-de8c-4ca6-afcc-b42c99327bcb"
}

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>465e07d4-de8c-4ca6-afcc-b42c99327bcb</CompanyID>
  <Name>sample string 1</Name>
  <ParentID>da5d5bf4-8926-456d-8929-ea9f241a44b4</ParentID>
</CategoryAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"categoryType":1,"name":"sample string 1","parentID":"da5d5bf4-8926-456d-8929-ea9f241a44b4","companyID":"465e07d4-de8c-4ca6-afcc-b42c99327bcb"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.