Update attribute library entry
Update the values and usage of an entry inside a group, by the entry's ID. This is how you add, remove or change the predefined values of a lookup table.
Use the entry's data.id from Create attribute library entry as entity-id.
You can change an entry's options and usageType. You can't change its name or dataType.
The checksum is required. Use the one from the last Create entry or Update entry response. If it doesn't match the server's current checksum, the update is rejected.
On success, the response returns a new data.checksum. Store it for the next update.
Update the values and usage of an entry inside a group.
entity-id is the ID of the entry you want to update (data.id from Create attribute library entry), not the ID of the group.
What you can change: the entry's options and usageType. You can't change its name or dataType.
Checksum: checksum is required. Use the one from the last Create entry or Update entry response. If it doesn't match the server's current checksum, the update is rejected.
On success, the response returns a new data.checksum — store it for the next update.
Your Nected API key. Obtain from your workspace settings.
ID of the entry you want to update (data.id from the create entry response). This is not the ID of the group.
5e0d3b8a-7c41-4f9e-9a52-1d6c8b2f4e70Branch name (optional)
Data type of the entry. Can't be changed.
stringWhether the entry is required
MandatoryCurrent checksum of the entry
6c1f0e9b2d8a4b7e9f3a5c1d7e2b8a40OK — data.checksum is the entry's new checksum.
Success response for update calls
Bad Request
Internal Server Error
PATCH /dev/v1/module_schema/{entity-id} HTTP/1.1
Host: api.nected.ai
Nected-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 166
{
"dataType": "string",
"usageType": "Mandatory",
"options": [
{
"value": "Pending"
},
{
"value": "Approved"
},
{
"value": "Cancelled"
}
],
"checksum": "6c1f0e9b2d8a4b7e9f3a5c1d7e2b8a40"
}{
"code": "success",
"message": "success",
"data": {
"checksum": "738bd0153c5f3af981bf8ac056a411fc"
}
}Request body
dataType
string
No
Data type of the entry, for example string. It can't be changed.
usageType
string
No
Whether the entry is required, for example Mandatory.
options
array
No
The predefined values. Each item is an object with a value key.
checksum
string
Yes
Current checksum of the entry.
Last updated