Grant access to companies
Grants user access to companies.
POST users/:id/companies/grant
Request properties
| Property | Type | Length | Description | Optional |
|---|---|---|---|---|
| CompanyIds | Array of Guid | - | Array of company Id's to grant user access. | No |
Example request
{
companyIds: [
"3069ba37-935b-4b2a-8016-8d345e29bec9",
"cc72ad7b-47e6-4d5d-8eeb-83fd9f6fa006"
]
}
Response
Upon successful operation a 200 status code will be returned, otherwise an error message with failure details.
Possible error responses
| Status code | Error code | Details |
|---|---|---|
| 400 | invalid_request_payload | One or more properties were not valid |
| 403 | forbidden | user has no rights to access the resource |
