POST api/Categories

Request Information

URI Parameters

None.

Body Parameters

CategoryDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

String length: inclusive between 0 and 255

Description

string

String length: inclusive between 0 and 255

CreatedByUserId

globally unique identifier

None.

TenantId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "52370d60-4b2f-4e92-95ab-58b769e27c24",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "CreatedByUserId": "02395c19-6336-4622-9748-304cb6e8fe04",
  "TenantId": "955add20-6a83-49ca-be42-7934b771e812"
}

application/xml, text/xml

Sample:
<CategoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Products.Models">
  <CreatedByUserId>02395c19-6336-4622-9748-304cb6e8fe04</CreatedByUserId>
  <Description>sample string 3</Description>
  <Id>52370d60-4b2f-4e92-95ab-58b769e27c24</Id>
  <Name>sample string 2</Name>
  <TenantId>955add20-6a83-49ca-be42-7934b771e812</TenantId>
</CategoryDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.