Change a member's role or projects

People only, with a fresh second factor; an API key answers `person_required`.

PATCH/v1/organisations/{org_id}/members/{account}

People only, with a fresh second factor; an API key answers person_required. An owner or an admin changes members; only an owner makes, changes or removes an owner, and the organization always keeps one (conflict). A role that sees every project (owner, admin) takes no projects. Keys the member made that the new role or projects no longer cover are revoked in the same change, since a key never holds more than the person who made it.

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 PATCH "https://api.pod.mapier.ai/v1/organisations/org_3ahrz6dmv29gqy5ckt18fp/members/example" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role":"owner"}'

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
role"owner" | "admin" | "member" | "viewer"NoSee listRoles for what each holds. owner and admin see every project.
projectsMemberProjectsNoThe projects a member or viewer reaches; null for every project.

Answer

200. The member as changed.

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, conflict. 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.update(orgId, account, { … })
Pythonpod.organisations.members.update(org_id, account, …)