Update a Controlled Vocabulary. User must have permission to update a controlled vocabulary.
In response, it will contain the object of metadata definition attributes like id, name, type and search fields etc.
Average Response Time: 1462ms (Add Controlled Vocabulary (CV) value) Average Response Time: 716ms (Update a CV value )
The Request Body will be a JSON-formatted object including the following properties. Each property here is an operation. All of these operations can be applied in a single request. After updating the Controlled Vocabulary, execute /metadata/apply POST request to apply the new changes.
The Response Body will be a JSON-formatted object having operation as key and each operation including the following properties.
Unauthorized. Missing Authorization or AccessToken or Access Token expired
Forbidden. Missing X-API-key
Wrong ID
{- "name": "Color List"
}
{- "createdEpoch": 1613877219787,
- "customerId": "157167185123342",
- "lastUpdatedEpoch": 1613877219787,
- "metadataDefinitionId": "6c921f5c-24c2-40b9-8718-3ad2d4a6be54",
- "metadataDefinitionName": "Colors",
- "metadataDefinitionSearchField": "colors",
- "metadataDefinitionType": "controlledVocabulary",
- "metadataDocument": {
- "values": [
- {
- "valueId": "b772d050-4ba4-443b-8ca7-cc1e42bdd731",
- "valueName": "Red"
}
], - "searchable": true
}
}