POST api/Budget/CreateCategory

Create new category under cost group

Request Information

URI Parameters

None.

Body Parameters

CostCategoryCreateBinder
NameDescriptionTypeAdditional information
ProjectID

integer

None.

ParentCategoryID

integer

None.

NewCategoryTitle

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectID": 1,
  "ParentCategoryID": 2,
  "NewCategoryTitle": "sample string 3"
}

application/xml, text/xml

Sample:
<CostCategoryCreateBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <NewCategoryTitle>sample string 3</NewCategoryTitle>
  <ParentCategoryID>2</ParentCategoryID>
  <ProjectID>1</ProjectID>
</CostCategoryCreateBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Create new category under cost group

API_Data_CostCategory
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

CostCategory

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "ProjectID": 1,
    "CategoryID": 2,
    "CategoryOption": 3,
    "CategoryTitle": "sample string 4",
    "CreatedByPerson": 1,
    "DateCreated": "2020-12-03 17:40:34",
    "SubCategory": []
  }
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.