curl --request PATCH \
--url https://app.nex.ai/api/developers/v1/objects/{slug}/attributes/{attr_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Status",
"options": {
"is_required": false,
"select_options": [
{
"id": "existing-id",
"name": "Renamed"
},
{
"name": "New Option"
}
]
}
}
'{
"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>"
}Updates properties of an existing attribute definition
curl --request PATCH \
--url https://app.nex.ai/api/developers/v1/objects/{slug}/attributes/{attr_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Status",
"options": {
"is_required": false,
"select_options": [
{
"id": "existing-id",
"name": "Renamed"
},
{
"name": "New Option"
}
]
}
}
'{
"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")
Fields to update
New display name
New description
Hide child attributes
Updated attribute definition