Skip to main content
PUT
/
owners
/
{owner_id}
/
users
cURL
curl --request PUT \
  --url https://api.opal.dev/v1/owners/{owner_id}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_ids": [
    "7870617d-e72a-47f5-a84c-693817ab4567",
    "1520617d-e72a-47f5-a84c-693817ab48ad2"
  ]
}'
{
  "users": [
    {
      "user_id": "29827fb8-f2dd-4e80-9576-28e31e9934ac",
      "email": "john.doe@company.dev",
      "full_name": "John Doe",
      "first_name": "John",
      "last_name": "Doe",
      "position": "Engineer"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

owner_id
string<uuid>
required

The ID of the owner.

Body

application/json

A list of user IDs.

user_ids
string<uuid>[]
required

Response

200 - application/json

The updated users for the owner.

A list of users.

users
object[]
required