# Rename a board or switch its layout

Changes a custom board's `name`, its `purpose`, or the `view` it opens in (unchosen, table or kanban). Nothing about its columns or its rows moves. Needs manage on the board.

Access class: `board:manage`.

## Endpoint

`PATCH /v1/boards/{id}`

## Parameters

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

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "name": "string",
    "purpose": "string",
    "view": "kanban"
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "access": "string",
    "columns": [
      {
        "calculation": "string",
        "config": {},
        "id": "",
        "kind": "string",
        "label": "string",
        "options": [
          {
            "groupLabel": "string",
            "id": "",
            "label": "string",
            "position": 1.5,
            "tone": "string",
            "value": "string"
          }
        ],
        "position": 1.5,
        "starred": true
      }
    ],
    "createdAt": "string",
    "definitionKey": "string",
    "id": "",
    "name": "string",
    "purpose": "string",
    "rows": [
      {
        "cells": {
          "<uuid-2>": "string"
        },
        "createdBy": "string",
        "id": "",
        "position": 1.5
      }
    ],
    "updatedAt": "string",
    "view": "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"
}
```
