Vytvořit atribut
Vytvoření jednoho atributu nebo bulk upsert více atributů.
Chování jednoho a hromadného zápisu
- Pro vytvoření nebo upsert jednoho klíče odešlete jeden objekt Attribute. Nový klíč vrátí
201; existující kompatibilní klíč vrátí200se samotným objektem Attribute. - Pro atomický upsert nejvýše 500 Attributes odešlete
{ "attributes": [...] }. Odpověď je200s{ "data": [...] }. typeexistujícího Attribute nelze změnit. U Relation Attribute nelze změnit ani druh relace.- Vynechané hodnoty
language,image_configanumber_configpři upsertu zachovají existující metadata.
POST /attributes/{key}/rename použijte pouze tehdy, když se nemění identita a mění se jen klíč.Autorizace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Tělo
- Option 1
- Option 2
^[a-zA-Z0-9][a-zA-Z0-9_/]*$text, number, url, email, date, boolean, richtext, format, enum, tags, image, images, file, files, json, relation Only valid for format Attributes. Defaults to text when omitted or null.
text, number, boolean, json, richtext, file, image Only valid for number or Formula-number Attributes. Omit during an upsert to preserve existing metadata.
Relation kind is immutable after creation.
When omitted during an upsert, the existing language is preserved.
When omitted during an upsert, existing canonical image requirements are preserved. Send an empty object to clear them.
Odpověď
Existing single Attribute updated, or bulk upsert completed
- Option 1
- Option 2
text, number, url, email, date, boolean, richtext, format, enum, tags, image, images, file, files, json, relation The stored result type produced by a format Attribute. Format formulas execute only in Extraction; Catalog stores the resulting value.
text, number, boolean, json, richtext, file, image Whether table editors may append missing enum or tag choices.
Presentation metadata for number and Formula-number Attributes. Stored and API values remain numeric.
Canonical requirements shared by every usage of an image Attribute.
Derived from archive state. Archive and restore remain Dashboard-only.
active, archived 
