TeamMembers

Change a team member’s role

Session cookie required. Personal access tokens are not accepted. Only an owner may grant the owner role; everything else is the Better Auth org plugin’s gate, relayed verbatim.

patch/api/v1/teams/{teamId}/members/{memberId}

Request

  • Base URL: https://charm.ing
  • URL: https://charm.ing/api/v1/teams/{teamId}/members/{memberId}
  • Auth: API key in cookie __Secure-better-auth.session_token

Path parameters

teamIdstring required
memberIdstring required

Request body

role'owner' | 'admin' | 'member' required

Response

Role changed.

oktrue required

Changes

No recorded changes to this operation across all 1 revision of this API.