Skip to main content
POST
/
customers
/
{id}
/
users
Sync users with a customer.
curl --request POST \
  --url https://1-some-client.some-server.healvi-chat/third-party/v1/customers/{id}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_ids": [
    123
  ]
}'
{
  "data": [
    {
      "id": 123,
      "name": "<string>",
      "email": 123,
      "roles": [
        "<string>"
      ],
      "permissions": [
        "<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

id
integer
required

Body

application/json
user_ids
integer[]

Array of user IDs. It will automatically determine which IDs to attach or detach.

Response

200 - application/json

Success

data
object[]