Skip to content

Update a contact field

PATCH
/api/v1/contact-attributes/{key}
curl --request PATCH \
--url https://dashboard.azimea.com/api/v1/contact-attributes/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "label": "Subscription plan", "description": null, "archived": false }'

Renames or describes a custom attribute, or archives it (archived: true hides it from pickers and keeps every stored value; false brings it back). Its key and type never change: rules and stored values rely on them. Needs contacts:write.

key
required
string
Media typeapplication/json
object
label
string
nullable 0 <= 80 characters
Example
Subscription plan
description
string
nullable 0 <= 300 characters
Example
null
archived
boolean
nullable
Example
false
Example
{
"label": "Subscription plan",
"description": null,
"archived": false
}

The field as it is now

Media typeapplication/json
object
isSuccess
boolean
value
One of:
object
key
string
label
string
type
string
Allowed values: Text Number Boolean Date DateTime TextList
description
string
nullable
createdFrom
string
Allowed values: Ui Api Csv
createdAt
string format: date-time
archivedAt
string format: date-time
nullable
status
integer format: int32
errors
Array<object>
object
code
string
message
string
params
object
key
additional properties
fieldErrors
object
key
additional properties
Array<object>
object
code
string
message
string
params
object
key
additional properties
Example
{
"isSuccess": true,
"value": {
"key": "plan",
"label": "Subscription plan",
"type": "Text",
"description": "The subscription plan the person is on.",
"createdFrom": "Api",
"createdAt": "2026-10-05T09:30:00+00:00",
"archivedAt": null
},
"status": 0,
"errors": [],
"fieldErrors": null
}

Validation failed: see errors[].code and fieldErrors

Media typeapplication/problem+json
object
statusCode
integer format: int32
default: 400
message
string
default: One or more errors occurred!
errors
object
key
additional properties
Array<string>
Example
{
"statusCode": 400,
"message": "One or more errors occurred!"
}

Missing or invalid API key

The key lacks the contacts:write permission