Inventory Schema
Create Attribute Values
Use this API to create attribute values for an attribute.
🗒 Things to Know
- This API only supports the creation of attribute options for the attributes with single/multi select response type and non user/location/date attribute type.
post/api/inventory/v2/schemas/attributes/{attributeId}/values/bulk/
Request
- Base URLhttps://hostname
- URLhttps://hostname/api/inventory/v2/schemas/attributes/{attributeId}/values/bulk/
- AuthOAuth 2Client credentialsToken URL: https://{hostname}/api/access/v1/oauth/token scopes: INVENTORY, INVENTORY_WRITE
Path parameters
attributeIdstring uuid required
ID of an attribute. The value is obtained using Get Inventory Schema API.
Request body
Example request
[
{
"value": "Option 1",
"hint": "Select this option if...",
"colorCode": "#FF5733"
}
]Response
OK
Example response
[
{
"id": "91e37a36-ca61-499b-b3c3-7d556aef5cde",
"value": "Option 1",
"valueKey": "VendorsOption1",
"hint": "Select this option if...",
"hintKey": "VendorsOption1Hint",
"status": "enabled",
"seeded": true,
"sequence": 1,
"colorCode": "#FF5733"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.