Skip to main content
POST
/
profiles
/
{profileId}
/
tags
Sync tags with a profile. Tags without ID will be created on the fly.
curl --request POST \
  --url https://1-some-client.some-server.healvi-chat/third-party/v1/profiles/{profileId}/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tags": [
    {
      "id": 123,
      "title": "<string>"
    }
  ]
}'
{
  "data": [
    {
      "id": 123,
      "title": "<string>",
      "created_at": "2023-01-01T12:00:00Z",
      "updated_at": "2023-01-01T12:00:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

profileId
integer
required

Body

application/json
tags
object[]

Array of tag objects. It will automatically determine which IDs to attach or detach. An object should contain ether an ID or a title. If an ID is supplied, the existing tag will be attached to the profile. If the ID is missing or null, a tag with that title will be created an attached.

Response

200 - application/json

Success

data
object[]