Change a member's role or projects
People only, with a fresh second factor; an API key answers `person_required`.
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
| 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 |
|---|---|---|---|
role | "owner" | "admin" | "member" | "viewer" | No | See listRoles for what each holds. owner and admin see every project. |
projects | MemberProjects | No | The projects a member or viewer reaches; null for every project. |
Answer
200. The member as changed.
{
"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, 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
| Client | Call |
|---|---|
| TypeScript | pod.organisations.members.update(orgId, account, { … }) |
| Python | pod.organisations.members.update(org_id, account, …) |