Set how many sandboxes one member may hold and keep awake
Per-member caps: the sandboxes a member made, with a key they made or signed in, count against their own `max_sandboxes` and `max_awake`; `null` removes one.
Per-member caps: the sandboxes a member made, with a key they made or signed in, count against their own max_sandboxes and max_awake; null removes one. The organization's and the project's limits still count on top, and a create or a wake past one answers quota_exceeded. A member's spend cap is PUT /v1/spend_caps with scope: member. People only, with a fresh second factor, by an owner or an admin; an admin cannot cap an owner (forbidden). An API key answers person_required.
For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.
Request
curl -X PUT "https://api.pod.mapier.ai/v1/organisations/org_3ahrz6dmv29gqy5ckt18fp/members/example/limits" \
-H "Authorization: Bearer $POD_PERSON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"max_sandboxes":0}'Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
org_id | path | string | Yes | |
account | path | string | Yes | The member's identity account id. |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
max_sandboxes | integer | null | No | From 0 to 1000000. |
max_awake | integer | null | No | From 0 to 1000000. |
Answer
200. The member, with their limits and spend cap now.
{
"account": "example",
"organisation": "org_3ahrz6dmv29gqy5ckt18fp",
"role": "owner",
"projects": null,
"created_at": "2026-11-23T12:00:00.000Z",
"limits": {
"max_sandboxes": null,
"max_awake": null
},
"spend_cap": null
}| Field | Type | Always | What it is |
|---|---|---|---|
account | string | Yes | An identity account id, the sub of the person's Mapier identity token. |
organisation | string | Yes | |
role | "owner" | "admin" | "member" | "viewer" | Yes | See listRoles for what each holds. owner and admin see every project. |
projects | MemberProjects | Yes | The projects a member or viewer reaches; null for every project. |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
limits | object | Yes | The member's own count limits (setMemberLimits); null fields are no limit. |
spend_cap | MemberSpendCap | null | Yes | The member's own spend cap this month; null when none is set. |
Errors
The refusals this call is known for: invalid, person_required, forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.organisations.members.setLimits(orgId, account, { … }) |
| Python | pod.organisations.members.set_limits(org_id, account, …) |