# Change workspace

Rename the workspace. Admin only — a name is shape rather than data — and 403 when the caller's role cannot. Nothing else about the workspace is settable here: the tier is billing's and the company's paperwork is KYC's.

Access class: `workspace:admin`.

## Endpoint

`PATCH /v1/workspace`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "name": "string"
  },
  "params": {},
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "id": 1,
    "name": "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"
}
```
