Add a new custom attribute
POST
/api/v1/accounts/{account_id}/custom_attribute_definitions
Custom Attributes
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/accounts//custom_attribute_definitions' \
--header 'Content-Type: application/json; charset=utf-8' \
--data-raw '{
"attribute_display_name": "string",
"attribute_display_type": 0,
"attribute_description": "string",
"attribute_key": "string",
"attribute_values": [
"string"
],
"attribute_model": 0
}'
Response Response Example
200 - Example 1
{
"id": 0,
"attribute_display_name": "string",
"attribute_display_type": "string",
"attribute_description": "string",
"attribute_key": "string",
"attribute_values": "string",
"default_value": "string",
"attribute_model": "string",
"account_id": 0
}
Request
Path Params
account_id
stringÂ
required
Body Params application/json; charset=utf-8