curl --request POST \
--url https://app.nex.ai/api/developers/v1/objects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Project",
"name_plural": "Projects",
"slug": "project",
"description": "Project tracker",
"type": "custom"
}
'{
"attributes": [
{
"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>"
}
],
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"name": "<string>",
"name_plural": "<string>",
"slug": "<string>",
"type": "<string>"
}Creates a new object definition (entity type) in the workspace
curl --request POST \
--url https://app.nex.ai/api/developers/v1/objects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Project",
"name_plural": "Projects",
"slug": "project",
"description": "Project tracker",
"type": "custom"
}
'{
"attributes": [
{
"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>"
}
],
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"name": "<string>",
"name_plural": "<string>",
"slug": "<string>",
"type": "<string>"
}API key for authentication (format: "Bearer YOUR_API_KEY")
Object definition to create
Created object definition
Hide child attributes
Hide child attributes