FacetFlux
pim.attributeDefinitions.allowedValues.set
Replace the allowed-value list for an enum/multiEnum attribute definition. Idempotent on `value`: values present in input but not in storage are inserted, values present in both have their labels/sortOrder/isActive updated, values present in storage but absent from input are deleted. After this call HasAllowedValues is true iff the resulting list is non-empty. Response: { attributeDefinitionId, added, updated, deleted }. Errors: { error: { code: 'not_found' | 'unprocessable', ... } }.
Remote revuo:facetflux
Other tools also called pim.attributeDefinitions.allowedValues.set?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"attributeDefinitionId": {
"description": "Attribute definition id.",
"type": "string"
},
"allowedValues": {
"description": "Allowed-value list. Each entry: { value, labels?, sortOrder?, isActive? }.",
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"description": "Value — the literal stored against products (e.g. 'red', 'XL').",
"type": "string"
},
"labels": {
"description": "Localized labels for display.",
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"sortOrder": {
"description": "Sort order within the allowed-value list.",
"type": [
"integer",
"null"
]
},
"isActive": {
"description": "Whether the value is currently selectable. Default true.",
"type": [
"boolean",
"null"
]
}
}
}
}
},
"required": [
"attributeDefinitionId",
"allowedValues"
]
}