Grant one member Direct Access on several clients
curl --request POST \ --url https://example.com/api/v1/clients/direct-access/bulk \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientIds": [ "example" ], "level": "MANAGER", "memberId": "example" }'Grants a team member Direct Access at one level on every given client where they hold none, each grant recorded in that client’s history under the acting member, exactly as the single grant does. Clients where the member already holds Direct Access stay unchanged, whatever their level. Requires the clients.edit permission; every client must be one the caller’s scope reaches, or nothing is granted and 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.
MANAGER makes the member each client’s responsible, receiving its projects’ alerts and the daily hours report; MEMBER is access only.
The team member who would get Direct Access.
Responses
Section titled “Responses”How many clients got the grant.
object
object
Clients where the member already held Direct Access, left unchanged.
Clients where Direct Access was granted.
Example generated
{ "data": { "alreadyHeld": 1, "granted": 1, "grantedClientIds": [ "example" ] }}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