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": "005f2e1e-e519-4a13-a413-9777951d7aa7",
  "Name": "sample string 2",
  "DataType": 1,
  "TenantId": "0e49e4cd-29b4-4dbc-98cf-3f667fadabfb",
  "Options": [
    {
      "Id": "e5108c3c-3c06-4efa-b53d-c4f46e222806",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2026-01-10T01:06:16.3168747+00:00",
      "AttributeTypeId": "25d2d188-260e-4f02-8797-08a934647e9c"
    },
    {
      "Id": "e5108c3c-3c06-4efa-b53d-c4f46e222806",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2026-01-10T01:06:16.3168747+00:00",
      "AttributeTypeId": "25d2d188-260e-4f02-8797-08a934647e9c"
    }
  ],
  "EditorTypeId": "793731f1-efc6-4002-8242-e170edc37c68",
  "EditorType": {
    "Id": "4549d944-2cdd-44c9-b68c-cb5f566633a9",
    "Name": "sample string 2",
    "CreationDate": "2026-01-10T01:06:16.3168747+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-10T01:06:16.3168747+00:00</CreationDate>
    <DataType>Bool</DataType>
    <Id>4549d944-2cdd-44c9-b68c-cb5f566633a9</Id>
    <Name>sample string 2</Name>
  </EditorType>
  <EditorTypeId>793731f1-efc6-4002-8242-e170edc37c68</EditorTypeId>
  <Id>005f2e1e-e519-4a13-a413-9777951d7aa7</Id>
  <Name>sample string 2</Name>
  <Options>
    <AttributeTypeOptionDto>
      <AttributeTypeId>25d2d188-260e-4f02-8797-08a934647e9c</AttributeTypeId>
      <CreationDate>2026-01-10T01:06:16.3168747+00:00</CreationDate>
      <Id>e5108c3c-3c06-4efa-b53d-c4f46e222806</Id>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </AttributeTypeOptionDto>
    <AttributeTypeOptionDto>
      <AttributeTypeId>25d2d188-260e-4f02-8797-08a934647e9c</AttributeTypeId>
      <CreationDate>2026-01-10T01:06:16.3168747+00:00</CreationDate>
      <Id>e5108c3c-3c06-4efa-b53d-c4f46e222806</Id>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </AttributeTypeOptionDto>
  </Options>
  <TenantId>0e49e4cd-29b4-4dbc-98cf-3f667fadabfb</TenantId>
</AttributeTypeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.