PUT
/
leads
/
{leadId}
/
tags
cURL
curl --request PUT \
  --url https://api.attent.app/v1/leads/{leadId}/tags \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "tagIds": [
    "tag1",
    "tag2",
    "tag3"
  ]
}'
{
  "tags": [
    {
      "id": "tag1",
      "name": "VIP Customer"
    },
    {
      "id": "tag2",
      "name": "Interested"
    },
    {
      "id": "tag3",
      "name": "Follow Up Required"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

leadId
string
required

The ID of the lead to update tags for

Body

application/json

Array of tag IDs to set on the lead

tagIds
string[]
required

Array of tag IDs to replace existing tags with

Response

Tags successfully replaced.

tags
object[]

Array of tags now assigned to the lead