Skip to main content
POST
/
v1
/
objects
/
{slug}
/
attributes
Create an attribute definition
curl --request POST \
  --url https://app.nex.ai/api/developers/v1/objects/{slug}/attributes \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Status",
  "slug": "status",
  "type": "select",
  "description": "Current status",
  "options": {
    "is_required": true,
    "select_options": [
      {
        "name": "Open"
      },
      {
        "name": "In Progress"
      },
      {
        "name": "Done"
      }
    ]
  }
}
'
{
  "description": "<string>",
  "id": "<string>",
  "name": "<string>",
  "options": {
    "is_multi_value": true,
    "is_required": true,
    "is_unique": true,
    "is_whole_number": true,
    "select_options": [
      {
        "id": "<string>",
        "name": "<string>"
      }
    ],
    "use_raw_format": true
  },
  "slug": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

API key for authentication (format: "Bearer YOUR_API_KEY")

Path Parameters

slug
string
required

Object slug

Body

application/json

Attribute definition to create

name
string
required

Display name

slug
string
required

URL-safe identifier

type
enum<string>
required

Attribute value type

Available options:
text,
number,
email,
phone,
url,
date,
boolean,
currency,
location,
select,
social_profile,
domain,
full_name
description
string

Description

options
object

Response

Created attribute definition

description
string
id
string
name
string
options
object
slug
string
type
string
Last modified on March 7, 2026