Preview a bulk Direct Access grant
curl --request POST \ --url https://example.com/api/v1/clients/direct-access/bulk/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientIds": [ "example" ], "memberId": "example" }'Counts, without writing anything, on how many of the given clients a team member would get Direct Access and on how many they already hold it. Requires the clients.edit permission; every client must be one the caller’s scope reaches, or the request is refused with 404.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Client IDs to grant on. Every id must be a client the caller’s scope reaches, or the whole request is refused.
The team member who would get Direct Access.
Example generated
{ "clientIds": [ "example" ], "memberId": "example"}Responses
Section titled “Responses”What the grant would change.
object
object
Clients where the member already holds Direct Access; they stay unchanged.
Distinct clients named in the request.
Clients where the member holds no Direct Access yet and would get it.
Example generated
{ "data": { "alreadyHeld": 1, "selected": 1, "toGrant": 1 }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}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" }}One or more clients 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" }}Invalid input.
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