Rename tag
PATCH
/api/v1/ext/tags/{id}
Rename a library tag.
Auth: Bearer access_token
Scope: contacts.write
Renames the library row only; contacts that carry the old name keep it. A name another tag in the workspace already has answers 409.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | The tag id (from *List tags*). |
| name | body | string | yes | The new name. |
Responses
| Status | When |
|---|---|
200 | OK |
400 | No name |
401 | Missing or invalid token |
403 | Missing scope |
404 | Tag does not exist or is not owned by the installer (same response for both) |
409 | Another tag has that name |
RequestResponses
curl -X PATCH "https://backend.mysmsgateway.app/api/v1/ext/tags/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "VIP client"
}'OK
{
"success": true,
"message": "Tag updated",
"data": {
"id": 310,
"workspace_id": 7,
"name": "VIP client",
"source": "library",
"created_at": "2026-11-04T02:10:00.000Z",
"updated_at": "2026-11-04T03:00:00.000Z"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
The tag id (from *List tags*).
Body (JSON)
Request URL
PATCHhttps://backend.mysmsgateway.app/api/v1/ext/tags/%7Bid%7D
Previous
« Create tag
Next
Delete tag »
