Attribute Values

List attribute values

get

Retrieve a list of attribute values with optional filtering.

Authorizations
Query parameters
pageinteger · min: 1Optional

Specifies the page number of the current dataset

Default: 1
limitinteger · min: 1Optional

Indicates the number of rows on the current page.

Default: 10
labelstringOptional

The display label of the attribute value

Example: Color
valuestringOptional

Filter by value (contains)

Example: Red
erp_codestringOptional

Filter by ERP code (contains)

Example: ERPCODE123
value__exactstringOptional

Filter by value (exact match)

Example: Red
pk__ininteger[]Optional

Filter by multiple primary key values (comma-separated list of integers)

attributeinteger · int64Optional

Filter by related attribute ID

Example: 1
Responses
200

A list of attribute values.

application/json
get
GET /api/v1/attribute_value/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": 1,
    "attribute": {
      "id": 1,
      "default_value": {
        "id": 1,
        "attribute": {
          "id": 1,
          "default_value": {
            "id": 1,
            "attribute": "[Circular Reference]",
            "label": "Color Red",
            "value": "Red",
            "order": 1,
            "erp_code": "ERPCODE123",
            "created_date": "2021-01-01T00:00:00Z",
            "modified_date": "2021-01-01T00:00:00Z",
            "translations": {
              "ANY_ADDITIONAL_PROPERTY": "text"
            }
          },
          "entity_type": {
            "id": 1,
            "app_label": "text",
            "model": "text"
          },
          "erp_code": "ERPCODE123",
          "pre_attribute": true,
          "description": "This is a color attribute",
          "name": "Color",
          "key": "color",
          "data_type": "text"
        },
        "label": "Color Red",
        "value": "Red",
        "order": 1,
        "erp_code": "ERPCODE123",
        "created_date": "2021-01-01T00:00:00Z",
        "modified_date": "2021-01-01T00:00:00Z",
        "translations": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        }
      },
      "entity_type": {
        "id": 1,
        "app_label": "text",
        "model": "text"
      },
      "erp_code": "ERPCODE123",
      "pre_attribute": true,
      "description": "This is a color attribute",
      "name": "Color",
      "key": "color",
      "data_type": "text"
    },
    "label": "Color Red",
    "value": "Red",
    "order": 1,
    "erp_code": "ERPCODE123",
    "created_date": "2021-01-01T00:00:00Z",
    "modified_date": "2021-01-01T00:00:00Z",
    "translations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  }
]

Was this helpful?