Endpoints
Tags
The workspace tag list that contact tags come from.
Пути указаны относительно базового URL. В каждой карточке указано, какое разрешение нужно для вызова, и перечислены все параметры с типами и ограничениями.
GET
/tagsList workspace tags.
Разрешение: contacts
POST
/tagsCreate a workspace tag.
Разрешение: contacts
Тело JSON
- nameоб язательноstring
1–80 characters. Must be unique (case-insensitive), else 409.
- colorнеобязательноenum | null
Tag color.
Допустимые значения:
chart-1chart-2chart-3chart-4chart-5chart-6chart-7chart-8
PATCH
/tags/:idRename or recolor a tag. A rename updates every contact that has it. Send name, color, or both.
Разрешение: contacts
Параметры пути
- idобязательноinteger
Tag ID.
Тело JSON
- nameнеобязательноstring
1–80 characters.
- colorнеобязательноenum | null
Tag color.
Допустимые значения:
chart-1chart-2chart-3chart-4chart-5chart-6chart-7chart-8
DELETE
/tags/:idDelete a tag and remove it from every contact. The response includes contacts_updated.
Разрешение: contacts
Параметры пути
- idобязательноinteger
Tag ID.