POST api/Attributes

Request Information

URI Parameters

None.

Body Parameters

AttributeDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Value

string

String length: inclusive between 0 and 512

AttributeTypeId

globally unique identifier

None.

AttributeType

AttributeTypeDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "57b8228f-4992-4022-baa5-f5259d73aab0",
  "Value": "sample string 2",
  "AttributeTypeId": "79543708-11a9-4e05-9689-171839a82bc8",
  "AttributeType": {
    "Id": "a244ec78-853e-4c05-8637-fb83f0db4fe7",
    "Name": "sample string 2",
    "DataType": 1,
    "TenantId": "132937a1-9048-4df4-883f-0c9d06cd4b94",
    "Options": [
      {
        "Id": "68305207-79ee-412c-a61a-2ee3265f35fe",
        "Name": "sample string 2",
        "Value": "sample string 3",
        "CreationDate": "2026-01-07T11:31:31.8515046+00:00",
        "AttributeTypeId": "a35bcd44-0399-4ce5-a296-af085eca15cf"
      },
      {
        "Id": "68305207-79ee-412c-a61a-2ee3265f35fe",
        "Name": "sample string 2",
        "Value": "sample string 3",
        "CreationDate": "2026-01-07T11:31:31.8515046+00:00",
        "AttributeTypeId": "a35bcd44-0399-4ce5-a296-af085eca15cf"
      }
    ],
    "EditorTypeId": "7edc513c-ff40-49f0-8039-f89cb10225f7",
    "EditorType": {
      "Id": "4695461a-b94d-4959-8e3a-87046d3f1561",
      "Name": "sample string 2",
      "CreationDate": "2026-01-07T11:31:31.8515046+00:00",
      "DataType": 1
    }
  }
}

application/xml, text/xml

Sample:
<AttributeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Products.Models">
  <AttributeType>
    <DataType>Bool</DataType>
    <EditorType>
      <CreationDate>2026-01-07T11:31:31.8515046+00:00</CreationDate>
      <DataType>Bool</DataType>
      <Id>4695461a-b94d-4959-8e3a-87046d3f1561</Id>
      <Name>sample string 2</Name>
    </EditorType>
    <EditorTypeId>7edc513c-ff40-49f0-8039-f89cb10225f7</EditorTypeId>
    <Id>a244ec78-853e-4c05-8637-fb83f0db4fe7</Id>
    <Name>sample string 2</Name>
    <Options>
      <AttributeTypeOptionDto>
        <AttributeTypeId>a35bcd44-0399-4ce5-a296-af085eca15cf</AttributeTypeId>
        <CreationDate>2026-01-07T11:31:31.8515046+00:00</CreationDate>
        <Id>68305207-79ee-412c-a61a-2ee3265f35fe</Id>
        <Name>sample string 2</Name>
        <Value>sample string 3</Value>
      </AttributeTypeOptionDto>
      <AttributeTypeOptionDto>
        <AttributeTypeId>a35bcd44-0399-4ce5-a296-af085eca15cf</AttributeTypeId>
        <CreationDate>2026-01-07T11:31:31.8515046+00:00</CreationDate>
        <Id>68305207-79ee-412c-a61a-2ee3265f35fe</Id>
        <Name>sample string 2</Name>
        <Value>sample string 3</Value>
      </AttributeTypeOptionDto>
    </Options>
    <TenantId>132937a1-9048-4df4-883f-0c9d06cd4b94</TenantId>
  </AttributeType>
  <AttributeTypeId>79543708-11a9-4e05-9689-171839a82bc8</AttributeTypeId>
  <Id>57b8228f-4992-4022-baa5-f5259d73aab0</Id>
  <Value>sample string 2</Value>
</AttributeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.