fastmon Docs
Members

Update Member Role

Fehler melden

Change a member's role.

The only way to move someone between viewer / member / owner after they joined. Two rules beyond the member:manage gate, both of which a role bundle cannot express:

  • Granting OWNER goes through the same check as an owner invite (_can_grant_owner_role), so a partner org cannot mint owners in a client org it merely manages.
  • The last owner cannot be demoted. An org without an owner has nobody who can change settings, invite, or delete it - and accept_invite already treats owner-less orgs as a defect it silently repairs. Refuse here rather than create the state.
AuthentifizierungBearer <token>

API token generated from the fastmon dashboard (Account → API Token) or at organization level (fmo_…, one that outlives its creator). Send as Authorization: Bearer fm_... or paste the full token (including its prefix) into the Authorize dialog.

In: header

Pfad-Parameter

member_id*Member Id
Formatuuid

Request-Body

application/json

Response-Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

PATCH
/members/{member_id}
curl -X PATCH "https://example.com/members/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "role": "owner"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",  "email": "string",  "full_name": "string",  "role": "owner",  "totp_enabled": false,  "created_at": "2019-08-24T14:15:22Z"}