| Parameter | Type | Required | Description |
|---|---|---|---|
aiContactId | string (UUID) | Yes | Unique identifier of the contact |
| Field | Type | Required | Description |
|---|---|---|---|
tagsIds | number[] | Yes | Array of tag IDs to assign to the contact |
| Field | Type | Description |
|---|---|---|
status | string | Status of the operation (always βsuccessβ) |
aiContactTagsLength | number | Total number of tags assigned to the contact |
[1, 2, 3] and you send tagsIds: [4, 5], the contact will end up with only [4, 5].
Before: Contact has tags [1, 2, 3]
Request: { "tagsIds": [4, 5] }
After: Contact has tags [4, 5]
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid tag IDs or tags donβt exist |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Contact not found |
| 500 | Internal Server Error - Something went wrong |
GET /api/public/tags to get all available tags