POST api/Categories

Request Information

URI Parameters

None.

Body Parameters

Collection of CategoryModel
NameDescriptionTypeAdditional information
Name

string

None.

ChildrenKeys

Collection of string

None.

CreatedOn

date

None.

ModifiedOn

date

None.

IsDeleted

boolean

None.

HasSubCategories

boolean

None.

Key

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "ChildrenKeys": [
      "sample string 1",
      "sample string 2"
    ],
    "CreatedOn": "2025-12-06T06:21:56.5906114+02:00",
    "ModifiedOn": "2025-12-06T06:21:56.5906114+02:00",
    "IsDeleted": true,
    "HasSubCategories": true,
    "Key": "sample string 6"
  },
  {
    "Name": "sample string 1",
    "ChildrenKeys": [
      "sample string 1",
      "sample string 2"
    ],
    "CreatedOn": "2025-12-06T06:21:56.5906114+02:00",
    "ModifiedOn": "2025-12-06T06:21:56.5906114+02:00",
    "IsDeleted": true,
    "HasSubCategories": true,
    "Key": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Stream.Models">
  <CategoryModel>
    <ChildrenKeys xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </ChildrenKeys>
    <CreatedOn>2025-12-06T06:21:56.5906114+02:00</CreatedOn>
    <HasSubCategories>true</HasSubCategories>
    <IsDeleted>true</IsDeleted>
    <Key>sample string 6</Key>
    <ModifiedOn>2025-12-06T06:21:56.5906114+02:00</ModifiedOn>
    <Name>sample string 1</Name>
  </CategoryModel>
  <CategoryModel>
    <ChildrenKeys xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </ChildrenKeys>
    <CreatedOn>2025-12-06T06:21:56.5906114+02:00</CreatedOn>
    <HasSubCategories>true</HasSubCategories>
    <IsDeleted>true</IsDeleted>
    <Key>sample string 6</Key>
    <ModifiedOn>2025-12-06T06:21:56.5906114+02:00</ModifiedOn>
    <Name>sample string 1</Name>
  </CategoryModel>
</ArrayOfCategoryModel>

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.