PUT
/
v1
/
accounts
/
attributes
/
{id}
curl --request PUT \
  --url https://platform.thena.ai/v1/accounts/attributes/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "icon": "camera",
  "color": "#000000",
  "isClosed": false,
  "value": "PROSPECT",
  "isDefault": false
}'
{
  "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

Path Parameters

id
string
required

Body

application/json
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

value
string

Attribute value

Example:

"PROSPECT"

isDefault
boolean

Whether the attribute is default

Example:

false

Response

200
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