Add a user to an account
PUT/users/add/:id
Add a user to an account
Request
Path Parameters
id uuidrequired
Unique identifier of the user to add
Header Parameters
sub-account stringrequired
Sub-account identifier required for all requests
- application/json
Body
required
account_id stringrequired
Unique identifier of the account to which the user belongs.
Responses
- 200
- 400
- 404
User added to account
- application/json
- Schema
- Example (from schema)
Schema
account_id uuidrequired
Unique identifier of the account
user_id uuidrequired
Unique identifier of the user
user_role stringrequired
Possible values: [admin
, user
]
Role of the user
{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"user_role": "admin"
}
Bad Request
User not found
Loading...