# Make a revision of a tab as an agent

> Page: https://docs.plotwork.dev/api/post-v1-boards-board-tabs-tab-revisions. Index of every page: https://docs.plotwork.dev/llms.txt

A revision of the tab for the agent to work in, named "<client>'s proposal" unless named, private to the agent and its member unless share is board.

`POST /v1/boards/{board}/tabs/{tab}/revisions`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Make a revision of a tab as an agent. |
| What does it take? | A JSON body of type [`AgentCreateBoardRevisionBody`](https://docs.plotwork.dev/api/schemas.md#agentcreateboardrevisionbody). |
| What does it return? | Status 201 with a body of type [`AgentBoardRevisionCreated`](https://docs.plotwork.dev/api/schemas.md#agentboardrevisioncreated). |
| What can go wrong? | `400` the body is not valid; `401` the API key is missing or not valid; `403` the account's plan does not include the REST API (plan.rest_not_included), the key is a person's own (boards.org_key_required), a trusted publisher (boards.publisher_not_allowed), an organisation key without the boards scope (key.scope_missing), boards are not on (boards.not_enabled), or the caller may look but not change the board (boards.forbidden); `404` no such board, tab or revision, or one not open to the caller (boards.revision_not_found): the cases look alike; `409` the tab has as many open revisions as it may (boards.revision_limit); `413` the body is larger than the API takes; `429` too many requests, or a daily limit is spent; `503` live whiteboards are not set up on this server. Every failure uses the one error envelope. |

## What it does

A revision of the tab for the agent to work in, named "<client>'s proposal" unless named, private to the agent and its member unless share is board. Edit it with revision on the edits route; main does not change until a person merges it. 409 boards.revision_limit when the tab has as many open revisions as it may. The REST twin of create_revision.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `board` | `string` | yes | The board's id: 22 letters and digits. |
| `tab` | `string` | yes | The tab's id: 12 letters and digits. |

## Request body

The body has the type [`AgentCreateBoardRevisionBody`](https://docs.plotwork.dev/api/schemas.md#agentcreateboardrevisionbody).

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | `string` | no | Defaults to "<client>'s proposal". at least 1 character; at most 60 characters. |
| `fromVersion` | `integer` | no |  |
| `share` | `"private" \| "board"` | no | default "private". |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 201 | The new revision and its source. | [`AgentBoardRevisionCreated`](https://docs.plotwork.dev/api/schemas.md#agentboardrevisioncreated) |
| 400 | The body is not valid. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 401 | The API key is missing or not valid. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | The account's plan does not include the REST API (plan.rest_not_included), the key is a person's own (boards.org_key_required), a trusted publisher (boards.publisher_not_allowed), an organisation key without the boards scope (key.scope_missing), boards are not on (boards.not_enabled), or the caller may look but not change the board (boards.forbidden). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such board, tab or revision, or one not open to the caller (boards.revision_not_found): the cases look alike. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 409 | The tab has as many open revisions as it may (boards.revision_limit). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 413 | The body is larger than the API takes. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests, or a daily limit is spent. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Live whiteboards are not set up on this server. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 201 answer has the type [`AgentBoardRevisionCreated`](https://docs.plotwork.dev/api/schemas.md#agentboardrevisioncreated).

| Field | Type | Required | Description |
|---|---|---|---|
| `revision` | `AgentBoardRevision` | yes |  |
| `revision.id` | `string` | yes | at least 12 characters; at most 12 characters; pattern `^[0-9A-Za-z]+$`. |
| `revision.tab` | `string` | yes |  |
| `revision.name` | `string` | yes |  |
| `revision.author` | `RevisionPerson` | yes |  |
| `revision.author.kind` | `"person" \| "agent" \| "key"` | yes |  |
| `revision.author.label` | `string` | yes |  |
| `revision.visibility` | `"private" \| "board" \| "people"` | yes | private: the author only; board: everyone the board is open to; people: the author and the people named. |
| `revision.status` | `"open" \| "pending" \| "merged" \| "discarded"` | yes | open, pending (a merge waits for approval), merged, or discarded. |
| `revision.baseVersion` | `integer` | yes | The main version it forked from, or was last updated from. |
| `revision.version` | `integer` | yes |  |
| `revision.behind` | `integer` | yes | Main versions made since baseVersion. |
| `revision.createdAt` | `integer` | yes |  |
| `revision.updatedAt` | `integer` | yes |  |
| `revision.updatedBy` | `RevisionPerson` | yes |  |
| `revision.updatedBy.kind` | `"person" \| "agent" \| "key"` | yes |  |
| `revision.updatedBy.label` | `string` | yes |  |
| `revision.readable` | `boolean` | yes | False for a private revision shown by its name only, to the people who manage the board. |
| `revision.mine` | `boolean` | yes |  |
| `revision.request` | `object \| null` | yes |  |
| `revision.request.by` | `RevisionPerson` | yes |  |
| `revision.request.at` | `integer` | yes |  |
| `revision.request.note` | `string \| null` | yes |  |
| `revision.review` | `object \| null` | yes |  |
| `revision.review.by` | `RevisionPerson` | yes |  |
| `revision.review.at` | `integer` | yes |  |
| `revision.review.comment` | `string \| null` | yes |  |
| `revision.mergedVersion` | `integer \| null` | yes |  |
| `revision.mergedBy` | `any` | yes |  |
| `revision.mergedBy.kind` | `"person" \| "agent" \| "key"` | yes |  |
| `revision.mergedBy.label` | `string` | yes |  |
| `revision.closedAt` | `integer \| null` | yes |  |
| `revision.shared` | `integer` | yes | People it is shared with by name. |
| `source` | `string` | yes |  |
| `viewUrl` | `string` | yes | The board open on this tab with the revision chosen, for the person who connected the agent to watch it live. |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
