Revoke access to companies

Revokes user access to companies.

POST users/:id/companies/revoke

Request properties

Property Type Length Description Optional
CompanyIds Array of Guid - Array of company Id's to revoke 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
400 invalid_request_payload This user is still assigned to one or more documents for authorisation.
400 invalid_request_payload This user is still selected in one or more authorisation flows.
403 forbidden user has no rights to access the resource