PUT
/
api
/
tags
/
{tagId}
curl --request PUT \
  --url https://api.atendai.com/api/tags/{tagId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Example",
  "color": "#5300eb",
  "kanban": 0,
  "order": 0,
  "companyId": "3708fcdf-954b-48f8-91ff-25babaccac67"
}'
{
  "id": "<string>",
  "name": "<string>",
  "color": "<string>",
  "kanban": 123,
  "order": 123,
  "companyId": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "contacts": [
    {
      "id": "<string>",
      "name": "<string>",
      "number": "<string>",
      "email": "<string>",
      "profilePicUrl": "<string>",
      "isGroup": true,
      "isAdmin": true,
      "isOpen": true,
      "isBotEnabled": true,
      "utmCampaign": "<string>",
      "utmContent": "<string>",
      "utmMedium": "<string>",
      "utmSource": "<string>",
      "utmTerms": "<string>",
      "active": true,
      "channel": "<string>",
      "whatsappId": "<string>",
      "companyId": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tagId
string
required

ID of the tag to update

Body

application/json

Response

200
application/json
Tag updated successfully

The response is of type object.