## Change the role of a member `PUT https://getkollek.com/api/account/members/{member}` Change the role a member holds in the account. An account always keeps at least one owner, so demoting the last one is refused. **Permissions:** Owners only. Editors and viewers get a 404 response. ### Path parameters - `member` (integer, required): The ID of the member. ### Body parameters - `role` (string, required): The role to grant. One of owner, editor or viewer. **Returns:** The updated member object. ### Example request ```bash curl https://getkollek.com/api/account/members/2 \ -X PUT \ -H "Authorization: Bearer $API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "role": "viewer" }' ``` ### Example response `Status: 200` ```json { "data": { "type": "member", "id": "2", "attributes": { "first_name": "Chandler", "last_name": "Bing", "nickname": null, "email": "chandler@centralperk.test", "role": "viewer", "created_at": 1752537600, "updated_at": 1752537600 }, "links": { "self": "https://getkollek.com/api/account/members/2" } } } ```