Перейти к содержимому

Item attributes

Custom attribute specs attached to items (text, date, number, barcode).

File-type attributes are app-only and cannot be managed via the API.

Specification of a custom attribute that items in this team may carry (e.g. “Brand”, “Expiration Date”, “Minimum Stock”).

idintegerminimum 0, maximum 2147483647обязательный

Attribute spec id.

attr_typestringобязательный

Value type accepted by this attribute. text accepts any string; date accepts an ISO-8601 date (YYYY-MM-DD); number accepts a JSON number; barcode accepts a barcode string. File-type attributes exist in the BoxHero app but cannot be queried or set via the Open API.

Возможные значенияtextdatenumberbarcode

attr_namestringобязательный

Display name of the attribute.

ranknumberобязательный

Sort order shown in the BoxHero app. Lower values appear first; ties are broken by id. Ranks need not be contiguous.

Пример

{
"id": 485697,
"attr_type": "text",
"attr_name": "Brand",
"rank": 1
}