POST api/AttributeTypes

Request Information

URI Parameters

None.

Body Parameters

AttributeTypeDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

String length: inclusive between 0 and 255

DataType

DataTypeDto

None.

TenantId

globally unique identifier

None.

Options

Collection of AttributeTypeOptionDto

None.

EditorTypeId

globally unique identifier

None.

EditorType

EditorTypeDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "545906d2-9a58-47bb-8a16-e63b680c32cc",
  "Name": "sample string 2",
  "DataType": 1,
  "TenantId": "9b6f1989-74ff-4f5b-88ba-bc166ea57376",
  "Options": [
    {
      "Id": "c97a5b24-641e-42fd-9cbd-181b4f06b41e",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2026-01-07T11:30:04.1136135+00:00",
      "AttributeTypeId": "f5dd3367-eff6-4c9a-97e2-d6f13e8aebd0"
    },
    {
      "Id": "c97a5b24-641e-42fd-9cbd-181b4f06b41e",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2026-01-07T11:30:04.1136135+00:00",
      "AttributeTypeId": "f5dd3367-eff6-4c9a-97e2-d6f13e8aebd0"
    }
  ],
  "EditorTypeId": "09ad12f3-931a-4a67-9b9f-f9f28dd0b148",
  "EditorType": {
    "Id": "26369759-d23b-4c93-a547-5b73a5858670",
    "Name": "sample string 2",
    "CreationDate": "2026-01-07T11:30:04.1136135+00:00",
    "DataType": 1
  }
}

application/xml, text/xml

Sample:
<AttributeTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Products.Models">
  <DataType>Bool</DataType>
  <EditorType>
    <CreationDate>2026-01-07T11:30:04.1136135+00:00</CreationDate>
    <DataType>Bool</DataType>
    <Id>26369759-d23b-4c93-a547-5b73a5858670</Id>
    <Name>sample string 2</Name>
  </EditorType>
  <EditorTypeId>09ad12f3-931a-4a67-9b9f-f9f28dd0b148</EditorTypeId>
  <Id>545906d2-9a58-47bb-8a16-e63b680c32cc</Id>
  <Name>sample string 2</Name>
  <Options>
    <AttributeTypeOptionDto>
      <AttributeTypeId>f5dd3367-eff6-4c9a-97e2-d6f13e8aebd0</AttributeTypeId>
      <CreationDate>2026-01-07T11:30:04.1136135+00:00</CreationDate>
      <Id>c97a5b24-641e-42fd-9cbd-181b4f06b41e</Id>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </AttributeTypeOptionDto>
    <AttributeTypeOptionDto>
      <AttributeTypeId>f5dd3367-eff6-4c9a-97e2-d6f13e8aebd0</AttributeTypeId>
      <CreationDate>2026-01-07T11:30:04.1136135+00:00</CreationDate>
      <Id>c97a5b24-641e-42fd-9cbd-181b4f06b41e</Id>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </AttributeTypeOptionDto>
  </Options>
  <TenantId>9b6f1989-74ff-4f5b-88ba-bc166ea57376</TenantId>
</AttributeTypeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.