Update a workspace member's role
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.Reassign a workspace member to a different role. roleId must reference a role on this workspace — discover roles via GET /api/v1/workspace-roles.
Permission required: MANAGE_WORKSPACE_MEMBERS on the workspace.
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
userId*stringIdempotency-Key?stringMakes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.
length <= 255Body
application/json- body
Update a workspace member
roleId*stringWorkspace role ID to assign. Look up IDs via GET /api/v1/workspace-roles.
Workspace member
application/json- response
Workspace member
userId*stringUser ID — the stable handle for this member
email*stringname*string|nullrole*Workspace role
status*string"active""inactive"lastActiveAt*unknownjoinedAt*unknownWhen the user was added to the workspace
curl -X PATCH 'https://app.sajn.se/api/v1/members/string' \ -H 'authorization: string' \ -H 'Content-Type: application/json' \ -d '{ "roleId": "string"}'{ "userId": "string", "email": "string", "name": "string", "role": { "id": "string", "name": "string" }, "status": "active", "lastActiveAt": null, "joinedAt": null}Was this page helpful?