POST
/
v1
/
accounts
/
attributes
curl --request POST \
  --url https://platform.thena.ai/v1/accounts/attributes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "icon": "camera",
  "color": "#000000",
  "isClosed": false,
  "attribute": "account_status",
  "value": "PROSPECT",
  "isDefault": true
}'
{
  "id": "<string>",
  "attribute": "account_status",
  "value": "PROSPECT",
  "isDefault": true,
  "configuration": {},
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
attribute
enum<string>
required

Attribute type

Available options:
account_status,
account_classification,
account_health,
account_industry,
contact_type,
activity_type,
activity_status,
note_type,
task_type,
task_status,
task_priority
Example:

"account_status"

value
string
required

Attribute value

Example:

"PROSPECT"

icon
string

Hero icon name of the account attribute value

Example:

"camera"

color
string

HEX color of the account attribute value

Example:

"#000000"

isClosed
boolean

Whether the account attribute value is closed. Applicable only for task_status attribute type

Example:

false

isDefault
boolean

Whether the value is default for the attribute

Example:

true

Response

201
application/json
Operation successful
id
string
required

The unique identifier of the attribute value

attribute
enum<string>
required

Attribute type

Available options:
account_status,
account_classification,
account_health,
account_industry,
contact_type,
activity_type,
activity_status,
note_type,
task_type,
task_status,
task_priority
Example:

"account_status"

value
string
required

Attribute value

Example:

"PROSPECT"

isDefault
boolean
required

Whether this value is default for the attribute

configuration
object
required

Configuration of the attribute value

createdAt
string
required

The creation date of the attribute value

updatedAt
string
required

The update date of the attribute value