POST api/Category/Add
Request Information
URI Parameters
None.
Body Parameters
CategoryAddDtoName | Description | Type | Additional 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": "b9f0ca20-1f13-4805-a903-67f759efe249", "companyID": "8121cb2d-a16c-41e4-b56c-48c6e2fef390" }
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>8121cb2d-a16c-41e4-b56c-48c6e2fef390</CompanyID> <Name>sample string 1</Name> <ParentID>b9f0ca20-1f13-4805-a903-67f759efe249</ParentID> </CategoryAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"categoryType":1,"name":"sample string 1","parentID":"b9f0ca20-1f13-4805-a903-67f759efe249","companyID":"8121cb2d-a16c-41e4-b56c-48c6e2fef390"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.