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>"
}Creates a new attribute definition on an object type
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>"
}API key for authentication (format: "Bearer YOUR_API_KEY")
Object slug
Attribute definition to create
Display name
URL-safe identifier
Attribute value type
text, number, email, phone, url, date, boolean, currency, location, select, social_profile, domain, full_name Description
Hide child attributes
Field is required
Value must be unique
Allow multiple values
Store raw format (numbers)
Number must be integer
Created attribute definition