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": "0ae6a651-cbce-4215-b1c1-2b49aadb2373",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "CreatedByUserId": "b0d24948-2aa0-4e73-9751-d5a8c4b80970",
  "TenantId": "6c60f1d2-a56e-4212-b89b-4e1704b025e9"
}

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>b0d24948-2aa0-4e73-9751-d5a8c4b80970</CreatedByUserId>
  <Description>sample string 3</Description>
  <Id>0ae6a651-cbce-4215-b1c1-2b49aadb2373</Id>
  <Name>sample string 2</Name>
  <TenantId>6c60f1d2-a56e-4212-b89b-4e1704b025e9</TenantId>
</CategoryDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.