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": "55afdb8c-ebe4-4ec7-ad1e-4d39606abf93", "companyID": "a2d5cdb3-ce55-45a2-bf8b-edb653685baa" }
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>a2d5cdb3-ce55-45a2-bf8b-edb653685baa</CompanyID> <Name>sample string 1</Name> <ParentID>55afdb8c-ebe4-4ec7-ad1e-4d39606abf93</ParentID> </CategoryAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"categoryType":1,"name":"sample string 1","parentID":"55afdb8c-ebe4-4ec7-ad1e-4d39606abf93","companyID":"a2d5cdb3-ce55-45a2-bf8b-edb653685baa"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.