Inventory Schema
Manage Attribute Options
Use this API to manage attribute options in the assessment questions and inventories.
🗒 Things to Know
- This API supports deactivating/activating attribute options.
- This API can also be used for editing option names.
put/api/inventory/v2/schemas/attributes/{attributeId}/values/{valueId}
Request
- Base URLhttps://hostname
- URLhttps://hostname/api/inventory/v2/schemas/attributes/{attributeId}/values/{valueId}
- 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.
valueIdstring uuid required
ID of the attribute value to update
Request body
Example request
{
"AttributeId": "43fd3a8d-3f6b-464e-bf43-3f0c6c592442",
"Value": "Option 1",
"Status": "enabled",
"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.