Organisations
Make a revision of a tab as an agent
A revision of the tab for the agent to work in, named "
POST
/v1/boards/{board}/tabs/{tab}/revisionsTL;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. |
| What does it return? | Status 201 with a body of type 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 "
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.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | no | Defaults to " |
fromVersion | integer | no | |
share | "private" | "board" | no | default "private". |
Responses
| Status | Meaning | Body |
|---|---|---|
| 201 | The new revision and its source. | AgentBoardRevisionCreated |
| 400 | The body is not valid. | ErrorResponse |
| 401 | The API key is missing or not valid. | 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 |
| 404 | No such board, tab or revision, or one not open to the caller (boards.revision_not_found): the cases look alike. | ErrorResponse |
| 409 | The tab has as many open revisions as it may (boards.revision_limit). | ErrorResponse |
| 413 | The body is larger than the API takes. | ErrorResponse |
| 429 | Too many requests, or a daily limit is spent. | ErrorResponse |
| 503 | Live whiteboards are not set up on this server. | ErrorResponse |
Response body
A 201 answer has the type 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 | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |