Attribute List Item ID

The items of an attribute list are its attributes. When you set or read a value, the item's ID is the attribute_id.

To list the items of a list (reference):

curl https://app-api.geposit.se/v2.0/attribute/list/{attribute_list_id}/item \
  --header 'x-api-key: {API_KEY}'
[
  {
    "id": "ATTRIBUTE_ID",
    "type": "numeric",
    "name": "Revenue",
    "position": 1,
    "description": "",
    "default_value": "0",
    "created_at": "2023-02-10T09:35:58.367603Z"
  },
  {
    "id": "ATTRIBUTE_ID_2",
    "type": "string",
    "name": "Sales rep",
    "position": 2,
    "description": "",
    "default_value": ""
  }
]

type is the kind of value: string, numeric, bool, time, textarea, email, phone, label, slice or object.


Did this page help you?