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

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

post

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.

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 entry. Can't be changed after creation.

Example: OrderStatus
dataTypestringRequired

Data type of the entry. Can't be changed after creation.

Example: string
moduleIdstringRequired

ID of the group to add the entry to (data.id from Create attribute library group)

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
usageTypestringRequired

Whether the entry is required

Example: optional
Responses
201

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

application/json

Success response for create calls

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

Field
Type
Required
Description

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.

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

Last updated