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.

PUT/v1/organisations/{org_id}/members/{account}/limits

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

NameInTypeRequiredWhat it is
org_idpathstringYes
accountpathstringYesThe member's identity account id.
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
max_sandboxesinteger | nullNoFrom 0 to 1000000.
max_awakeinteger | nullNoFrom 0 to 1000000.

Answer

200. The member, with their limits and spend cap now.

200
{
  "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
}
FieldTypeAlwaysWhat it is
accountstringYesAn identity account id, the sub of the person's Mapier identity token.
organisationstringYes
role"owner" | "admin" | "member" | "viewer"YesSee listRoles for what each holds. owner and admin see every project.
projectsMemberProjectsYesThe projects a member or viewer reaches; null for every project.
created_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
limitsobjectYesThe member's own count limits (setMemberLimits); null fields are no limit.
spend_capMemberSpendCap | nullYesThe 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

ClientCall
TypeScriptpod.organisations.members.setLimits(orgId, account, { … })
Pythonpod.organisations.members.set_limits(org_id, account, …)