/{app_slug}/v1/tenants/{tenant_id}/members/{account_id}AuthChange a member's role. PAK must hold auth.tenant.members.update-role.
Path parameters
app_slug*stringSlug of the app.
tenant_id*stringId of the tenant.
account_id*stringId of the account.
Request body
role_name*stringNew role name from the app's `role` table.
Example: "admin"
Response · 200 Updated membership.
id*stringUnique identifier of the tenant membership.
tenant_id*stringThe tenant the tenant membership belongs to.
account_id*stringThe end user (account) the tenant membership belongs to.
role_id*stringId of the role.
role_name*stringName of the role.
joined_at*string · date-timeWhen the member joined the tenant (ISO 8601).
invited_by*stringThe account that created the invite, or `null` when an API key did.
Example
Request
PATCH https://api.auth.productcraft.co/{app_slug}/v1/tenants/{tenant_id}/members/{account_id}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"role_name": "admin"
}Response
{
"id": "string",
"tenant_id": "string",
"account_id": "string",
"role_id": "string",
"role_name": "string",
"joined_at": "2026-01-01T00:00:00.000Z",
"invited_by": "string"
}