POST api/Category/Create

Request Information

URI Parameters

None.

Body Parameters

Category
NameDescriptionTypeAdditional information
CategoryId

integer

None.

CategoryName

string

None.

CategoryDesc

string

None.

ParentCategoryId

integer

None.

IsSystemDependent

boolean

None.

response

Response

None.

CreatedBy

globally unique identifier

None.

CreatedDate

date

None.

EditedBy

globally unique identifier

None.

EditedDate

date

None.

IsActive

boolean

None.

IsDelete

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "CategoryName": "sample string 2",
  "CategoryDesc": "sample string 3",
  "ParentCategoryId": 4,
  "IsSystemDependent": true,
  "response": {
    "Error": "sample string 1",
    "Success": "sample string 2"
  },
  "CreatedBy": "e6561ef0-1995-4728-9311-82396ae338f2",
  "CreatedDate": "2025-12-10T21:37:45.676653-06:00",
  "EditedBy": "e7776366-8c73-44be-86b9-08260954b1b3",
  "EditedDate": "2025-12-10T21:37:45.676653-06:00",
  "IsActive": true,
  "IsDelete": true
}

application/xml, text/xml

Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
  <CreatedBy>e6561ef0-1995-4728-9311-82396ae338f2</CreatedBy>
  <CreatedDate>2025-12-10T21:37:45.676653-06:00</CreatedDate>
  <EditedBy>e7776366-8c73-44be-86b9-08260954b1b3</EditedBy>
  <EditedDate>2025-12-10T21:37:45.676653-06:00</EditedDate>
  <IsActive>true</IsActive>
  <IsDelete>true</IsDelete>
  <CategoryDesc>sample string 3</CategoryDesc>
  <CategoryId>1</CategoryId>
  <CategoryName>sample string 2</CategoryName>
  <IsSystemDependent>true</IsSystemDependent>
  <ParentCategoryId>4</ParentCategoryId>
  <response>
    <Error>sample string 1</Error>
    <Success>sample string 2</Success>
  </response>
</Category>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.