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": "b13ccd9c-9094-43dd-8350-a9188254d220", "companyID": "80cd735d-aaa7-4046-a37a-9edad438c7c2" }
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>80cd735d-aaa7-4046-a37a-9edad438c7c2</CompanyID> <Name>sample string 1</Name> <ParentID>b13ccd9c-9094-43dd-8350-a9188254d220</ParentID> </CategoryAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"categoryType":1,"name":"sample string 1","parentID":"b13ccd9c-9094-43dd-8350-a9188254d220","companyID":"80cd735d-aaa7-4046-a37a-9edad438c7c2"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.