Create attribute library entry
Create an entry (attribute) inside an existing attribute library group. An entry has a name, a data type, a list of predefined values and a usage.
Create the group first with Create attribute library group, then pass the group's data.id here as moduleId.
Create an entry (attribute) inside an existing attribute library group.
Before you call this: create the group with Create attribute library group and copy its data.id. Pass it as moduleId.
Required fields: name, dataType, moduleId, options and usageType.
options: the predefined values of the entry. Each value is an object with a value key.
data.id, data.checksum: on success, data.id is the new entry's ID and data.checksum is its checksum. You need both to update the entry.
Note: after an entry is created, only its values and usage can be changed — not its name or dataType.
Your Nected API key. Obtain from your workspace settings.
Branch name (optional)
Name of the entry. Can't be changed after creation.
OrderStatusData type of the entry. Can't be changed after creation.
stringID of the group to add the entry to (data.id from Create attribute library group)
a1b2c3d4-e5f6-7890-abcd-ef1234567890Whether the entry is required
optionalCreated — data.id is the new entry's ID.
Success response for create calls
Bad Request
Internal Server Error
POST /dev/v1/module_schema HTTP/1.1
Host: api.nected.ai
Nected-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 189
{
"name": "OrderStatus",
"dataType": "string",
"moduleId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"options": [
{
"value": "Pending"
},
{
"value": "Approved"
},
{
"value": "Rejected"
}
],
"usageType": "optional"
}{
"code": "success",
"message": "success",
"data": {
"id": "5e0d3b8a-7c41-4f9e-9a52-1d6c8b2f4e70",
"checksum": "6c1f0e9b2d8a4b7e9f3a5c1d7e2b8a40"
}
}Request body
name
string
Yes
Name of the entry, for example OrderStatus.
dataType
string
Yes
Data type of the entry, for example string.
moduleId
string
Yes
ID of the group to add the entry to (data.id from the create group response).
options
array
Yes
The predefined values. Each item is an object with a value key, for example { "value": "Pending" }.
usageType
string
Yes
Whether the entry is required, for example optional.
Last updated