Create Attribute Library Group
Create a new, empty attribute library group. A group is the container for your lookup values - you add the entries to it in a second call.
The response returns data.id. Save it: pass it as moduleId when you create entries in the group, and use it as entity-id for get and update calls.
Create a new, empty attribute library group.
Required fields: name and description. The description can be an empty string.
Next step: on success, data.id is the group's ID. Pass it as moduleId to Create attribute library entry (POST /dev/v1/module_schema) to add entries to the group. Use it as entity-id for get and update calls. Store data.checksum — you need it to update the group.
Your Nected API key. Obtain from your workspace settings.
Branch name (optional)
Name of the group
OrderAttributesDescription of the group. Can be an empty string.
Attributes used on ordersCreated — data.id is the new group's ID.
Success response for create calls
Bad Request
Internal Server Error
POST /dev/v1/module HTTP/1.1
Host: api.nected.ai
Nected-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"name": "OrderAttributes",
"description": "Attributes used on orders"
}{
"code": "success",
"message": "Success.",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"checksum": "313948cb4841b63922597ae815a12a92"
}
}Request body
name
string
Yes
Name of the group, for example OrderAttributes.
attributes
array
No
Attributes (lookup tables) in the group.
attributes[].name
string
Yes
Name of the attribute, for example OrderStatus.
attributes[].dataType
string
Yes
One of String, Numeric, Date, DateTime, Boolean, List, JSON.
attributes[].predefinedValues
array
No
The allowed values for the attribute.
attributes[].usage
string
Yes
Mandatory or Optional.
Last updated