POST api/ExpenseCategory/CreateCategory

Request Information

URI Parameters

None.

Body Parameters

CreateExpenseCategoryRequest
NameDescriptionTypeAdditional information
CategoryCode

string

None.

CategoryName

string

None.

ParentId

integer

None.

Description

string

None.

IconName

string

None.

ColorCode

string

None.

DisplayOrder

integer

None.

IsActive

boolean

None.

CategoryType

string

None.

CreateId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryCode": "sample string 1",
  "CategoryName": "sample string 2",
  "ParentId": 1,
  "Description": "sample string 3",
  "IconName": "sample string 4",
  "ColorCode": "sample string 5",
  "DisplayOrder": 6,
  "IsActive": true,
  "CategoryType": "sample string 8",
  "CreateId": "f2c1a5c6-5d63-4923-98a4-7dcfd6e48a55"
}

application/xml, text/xml

Sample:
<CreateExpenseCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Expense">
  <CategoryCode>sample string 1</CategoryCode>
  <CategoryName>sample string 2</CategoryName>
  <CategoryType>sample string 8</CategoryType>
  <ColorCode>sample string 5</ColorCode>
  <CreateId>f2c1a5c6-5d63-4923-98a4-7dcfd6e48a55</CreateId>
  <Description>sample string 3</Description>
  <DisplayOrder>6</DisplayOrder>
  <IconName>sample string 4</IconName>
  <IsActive>true</IsActive>
  <ParentId>1</ParentId>
</CreateExpenseCategoryRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateExpenseCategoryRequest'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>