# Change workspace members accountId

Change one member's seat: owner, admin, team_lead or member. ADMIN ONLY, and an owner seat is an owner's to give — anyone lesser trying is a 403. 409 when the change would leave the workspace with no owner at all. Taking the seat away entirely is the DELETE on the same address.

Access class: `workspace:admin`.

## Endpoint

`PATCH /v1/workspace/members/{accountId}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| accountId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "role": "string"
  },
  "params": {
    ":accountId": ""
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "accountId": "",
    "displayName": "string",
    "email": "string",
    "pausedAt": "string",
    "pausedBy": "string",
    "role": "string",
    "since": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
