Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 attribute library group

post

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.

Authorizations
Nected-API-KeystringRequired

Your Nected API key. Obtain from your workspace settings.

Header parameters
Nected-BranchstringOptional

Branch name (optional)

Body
namestringRequired

Name of the group

Example: OrderAttributes
descriptionstringRequired

Description of the group. Can be an empty string.

Example: Attributes used on orders
Responses
201

Created — data.id is the new group's ID.

application/json

Success response for create calls

codestringOptional
messagestringOptional
post/dev/v1/module
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

Field
Type
Required
Description

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.

You can't change an attribute's name or dataType after it's created, so check them before you send the request. Only predefinedValues and usage can be updated later.

Last updated