Přejít na hlavní obsah
POST
/
attributes
Vytvořit atribut
curl --request POST \
  --url https://hub.banditshq.com/api/v1/attributes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "label": "<string>",
  "type": "<string>",
  "attributes": [
    {}
  ]
}
'
Odesláním key, label a type vytvoříte jeden atribut. Opětovné odeslání stejného key aktualizuje atribut a vrací 200 (první vytvoření vrací 201). Pro synchronizaci použijte pole attributes (max 500 položek).
key
string
povinné
Stabilní klíč.
label
string
povinné
Popisek.
type
string
povinné
Typ dat.
attributes
array
Pole atributů pro bulk upsert.