# Update Contact Tags

`PATCH https://api.suger.cloud/org/{orgId}/contact/{contactId}/tag`

Update the tags for a contact. Tags must be alphabetic strings, max 10 characters each, max 5 tags total.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `orgId` | path | string | yes | Organization ID |
| `contactId` | path | string | yes | Contact ID |

## Request Body

Required.

Content-Type: `application/json` · Schema: `UpdateContactTagsRequest`

**`UpdateContactTagsRequest`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tags` | array<string> | no |  |

## Responses

### 200 — Successfully validated and updated tags

Content-Type: `application/json`

### 400 — Bad request error

Content-Type: `application/json`

### 500 — Internal server error

Content-Type: `application/json`

## Example

_Generated from this operation's schema. Values are placeholders — substitute your own ids, and set `SUGER_TOKEN` to a bearer token from the [OAuth client-credentials exchange](https://doc.fours.com/settings/oauth-app/)._

### Request

```bash
curl -X PATCH 'https://api.suger.cloud/org/{orgId}/contact/{contactId}/tag' \
  -H "Authorization: Bearer $SUGER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "tags": [
    "string"
  ]
}'
```

### Response — 200

```json
[
  "string"
]
```

### Error — 400

```json
"string"
```

---

API reference: https://doc.fours.com/api/
