Revoke a user's portal access
curl --request DELETE \ --url https://example.com/api/v1/client-members/example/portal-access \ --header 'Authorization: Bearer <token>'Revokes one user’s portal access as the Users page row action does: to every live company the caller reaches, closing the account once the last one goes, or right away for a person with no company. A person who also holds a company the caller cannot reach keeps that access; one already revoked or inactive is skipped. Requires the clients.view and clients.edit permissions and the same reach as GET /client-members; anyone else answers 404.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”WorkspaceMember id of the client person.
WorkspaceMember id of the client person.
Responses
Section titled “Responses”What the revocation did.
object
object
1 when the revocation was refused because the account changed meanwhile.
1 when the person lost portal access.
Example generated
{ "data": { "failed": 1, "people": 1 }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Client person not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC