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, so a partner organization cannot mint owners in a client it merely manages.
  • The last owner cannot be demoted. An organization without an owner has nobody who can change settings, invite, or delete it.

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <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.

Pfad-Parameter

member_id*Member Id
Formatuuid

Request-Body

application/json
  1. body
role*Role

The new role.

Value in"owner""member""viewer"

Response-Body

Successful Response

application/json
  1. response
id*Id

Identifier of the membership, not of the user.

Formatuuid
user_id*User Id

The account behind this membership.

Formatuuid
email*Email

The member's email address.

full_name?Full Name

The member's name, when they gave one.

role*Role

What the member may do here.

Value in"owner""member""viewer"
totp_enabled?Totp Enabled

Whether the account has two-factor authentication.

Defaultfalse
created_at*Created At

When the member joined.

Formatdate-time
PATCH
/members/{member_id}
curl -X PATCH 'https://api.fastmon.eu/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"}