Chelabase
ManagementMembers

Make a member a tenant admin, or not

PATCH
/v1/members/{member_id}

A tenant admin manages people and projects and is admin on every project. Demoting one checks what they keep (their own grants, overrides and teams' grants) as any grant is checked. Every branch of the tenant reconciles its member roles.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

member_id*string

Member id

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

tenant_admin*boolean

Only an active member may become a tenant admin; the last active tenant admin can't step down.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/members/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "tenant_admin": true  }'
{  "accepted_at": "2019-08-24T14:15:22Z",  "access": {    "level": "tenant_admin",    "projects": [      {        "platform_role": "viewer",        "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",        "via": "own"      }    ]  },  "created_at": "2019-08-24T14:15:22Z",  "display_name": "string",  "email": "string",  "has_access": true,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "invite": {    "expires_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "status": "invited",  "suspended_at": "2019-08-24T14:15:22Z",  "suspended_by": "c2e368d8-db1b-4e27-8850-4fa018b3a2bc",  "tenant_admin": true}