---
search:
  tags:
    - Members
    - PUT
seo:
  description: >-
    Gives a member a new role. Only an owner can make or change an owner, and…
    Reference for the PUT /_luna/orgs/{org}/members/{account} endpoint in the
    Luna API.
sidebar:
  label: Change a member's role
  badge: PUT
title: Change a member's role
type: openapi-operation
---
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}`

**Request body** (`application/json`, required)

- `role` (string, required) — \`owner\`, \`admin\`, \`developer\`, \`viewer\` or \`billing\`.

Request body example:

```json
{
  "role": "string"
}
```

**Responses**

- `200` — The member has the new role.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "ok": true
}
```
