Change a member's role
Gives a member a new role. Only an owner can make or change an owner, and an organisation always keeps one owner.
PUT
/_luna/orgs/{org}/members/{account}Authorization
AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
Scopes:
members:writePath parameters
orgstringrequiredThe organisation, by its slug.
accountstringrequiredThe member's account id.
Request body
requiredapplication/jsonrolestringrequiredowner, admin, developer, viewer or billing.
Responses
200
The member has the new role.
okbooleanrequiredAlways true.
default
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.