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": "06f15093-b78e-4bba-9337-1acf802e22cc",
  "Value": "sample string 2",
  "AttributeTypeId": "c36a2b5d-cc4c-4cc4-8169-e347913c8ec1",
  "AttributeType": {
    "Id": "0cba3fea-9da4-48ca-bb10-56f8152673a7",
    "Name": "sample string 2",
    "DataType": 1,
    "TenantId": "f2ef2a01-e4bf-4a29-ab18-5ab77782914b",
    "Options": [
      {
        "Id": "e68dd89d-a1a1-44c0-96d7-70da39b95513",
        "Name": "sample string 2",
        "Value": "sample string 3",
        "CreationDate": "2026-01-10T01:06:14.8088334+00:00",
        "AttributeTypeId": "161f506b-8264-431d-968e-e35b88f46cc5"
      },
      {
        "Id": "e68dd89d-a1a1-44c0-96d7-70da39b95513",
        "Name": "sample string 2",
        "Value": "sample string 3",
        "CreationDate": "2026-01-10T01:06:14.8088334+00:00",
        "AttributeTypeId": "161f506b-8264-431d-968e-e35b88f46cc5"
      }
    ],
    "EditorTypeId": "f39a34cd-7e09-4591-8e57-037419f25e9a",
    "EditorType": {
      "Id": "ada5cdcf-114a-4715-ad6a-386730fa6644",
      "Name": "sample string 2",
      "CreationDate": "2026-01-10T01:06:14.8088334+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-10T01:06:14.8088334+00:00</CreationDate>
      <DataType>Bool</DataType>
      <Id>ada5cdcf-114a-4715-ad6a-386730fa6644</Id>
      <Name>sample string 2</Name>
    </EditorType>
    <EditorTypeId>f39a34cd-7e09-4591-8e57-037419f25e9a</EditorTypeId>
    <Id>0cba3fea-9da4-48ca-bb10-56f8152673a7</Id>
    <Name>sample string 2</Name>
    <Options>
      <AttributeTypeOptionDto>
        <AttributeTypeId>161f506b-8264-431d-968e-e35b88f46cc5</AttributeTypeId>
        <CreationDate>2026-01-10T01:06:14.8088334+00:00</CreationDate>
        <Id>e68dd89d-a1a1-44c0-96d7-70da39b95513</Id>
        <Name>sample string 2</Name>
        <Value>sample string 3</Value>
      </AttributeTypeOptionDto>
      <AttributeTypeOptionDto>
        <AttributeTypeId>161f506b-8264-431d-968e-e35b88f46cc5</AttributeTypeId>
        <CreationDate>2026-01-10T01:06:14.8088334+00:00</CreationDate>
        <Id>e68dd89d-a1a1-44c0-96d7-70da39b95513</Id>
        <Name>sample string 2</Name>
        <Value>sample string 3</Value>
      </AttributeTypeOptionDto>
    </Options>
    <TenantId>f2ef2a01-e4bf-4a29-ab18-5ab77782914b</TenantId>
  </AttributeType>
  <AttributeTypeId>c36a2b5d-cc4c-4cc4-8169-e347913c8ec1</AttributeTypeId>
  <Id>06f15093-b78e-4bba-9337-1acf802e22cc</Id>
  <Value>sample string 2</Value>
</AttributeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.