Members
Grant a custom org role to a member
Assigns an existing custom role (permission set) to a member via a role_grants row scoped to this organization. Idempotent.
Path Parameters
organizationId*string
Format
uuiduserId*string
Header Parameters
x-organization-role*string
Portal impersonation role (pair with x-organization-id)
Value in
- "ORG_ADMIN"
- "ORG_MEMBER"
x-organization-id*string
Must match the organizationId path segment
Format
uuidx-user-id?string
Optional Supabase user id for org-admin verification on sensitive license routes
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/members/string/roles" \ -H "x-organization-role: ORG_ADMIN" \ -H "x-organization-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391" }'Empty
{ "message": "string"}{ "message": "string"}{ "message": "string"}