POST api/categories

Request Information

URI Parameters

None.

Body Parameters

CreateCategoryDto
NameDescriptionTypeAdditional information
Name

string

Required

String length: inclusive between 0 and 100

ParentCategoryId

integer

None.

Description

string

String length: inclusive between 0 and 500

Icon

string

String length: inclusive between 0 and 80

DisplayOrder

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "parentCategoryId": 1,
  "description": "sample string 2",
  "icon": "sample string 3",
  "displayOrder": 4
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.