Skip to main content
PATCH
Add and remove tags on a contact
No need to read the contact first.
  • Adding a tag the contact already has, or removing one it doesn’t have, does nothing: the call is safe to repeat.
  • Every tag must exist in the space (create it with POST /v1/tags). If any doesn’t, nothing is changed and the call answers 422 listing the unknown names.
  • A tag can’t be in both add and remove. At most 1,000 names in total.
Returns the contact’s tags after the change.

Authorizations

Authorization
string
header
required

OAuth2 access token. Pass the token in the Authorization header as Bearer <token>. The token is looked up in Redis to resolve the caller identity.

Path Parameters

contactId
integer<int64>
required

Contact ID.

Required range: x >= 0
Example:

42

Body

application/json
add
string[] | null

Names of tags to add to the contact (at most 512 characters each). Tags the contact already has are ignored.

Maximum array length: 1000
Example:
remove
string[] | null

Names of tags to remove from the contact (at most 512 characters each). Tags the contact doesn't have are ignored.

Maximum array length: 1000
Example:

Response

object[] | null

OK

name
string
required

Tag name.

Example:

"Volunteer"

color
string

Display color of the tag.

Example:

"#3B82F6"