Skip to content
Connect an agent

Organisations

Save a tab to the organisation library

Saves a tab as a new library diagram (new) or as a new version of the one it is linked to (linked), through the library publish and save: folder rules, label, secret scan, size and approval apply, and approval may hold it (status held).

POST/orgs/{org}/boards/{board}/tabs/{tab}/save

TL;DR

QuestionAnswer
What does it do?Save a tab to the organisation library.
What does it take?A JSON body of type SaveBoardTabBody.
What does it return?Status 200 with a body of type SaveBoardTabResult.
What can go wrong?400 the body is not valid; 401 not signed in; 403 boards are not on (boards.not_enabled), the caller may not change the board or the folder (boards.forbidden, orgs.folder_restricted), or the picture does not fit the plan (hosting.quota_exceeded); 404 no such organisation, board or tab, or the board is not open to the caller: the cases look alike; 409 the tab is not linked (boards.not_linked), the library diagram changed since (diagram.version_conflict) or is locked (hosting.diagram_locked); 413 the picture is larger than the plan allows; 422 the source has errors, or holds a secret the organisation blocks; 429 too many requests; 502 the diagram could not be stored; 503 organisations or boards are not set up on this server. Every failure uses the one error envelope.

What it does

Saves a tab as a new library diagram (new) or as a new version of the one it is linked to (linked), through the library publish and save: folder rules, label, secret scan, size and approval apply, and approval may hold it (status held). 409 diagram.version_conflict when the library diagram was saved since the version sent.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.
boardstringyesThe board's id: 22 letters and digits.
tabstringyesThe tab's id: 12 letters and digits.

Request body

The body has the type SaveBoardTabBody.

FieldTypeRequiredDescription
to"new" | "linked"yesnew: a new library diagram. linked: a new version of the library diagram the tab is linked to.
namestringnoat least 1 character; at most 200 characters.
folderstring | nullnoat most 200 characters.
libraryVersionintegernoFor linked: the library diagram's version the tab last saw. Left out, the tab's own link. minimum 0.

Responses

StatusMeaningBody
200The library diagram and the tab.SaveBoardTabResult
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403Boards are not on (boards.not_enabled), the caller may not change the board or the folder (boards.forbidden, orgs.folder_restricted), or the picture does not fit the plan (hosting.quota_exceeded).ErrorResponse
404No such organisation, board or tab, or the board is not open to the caller: the cases look alike.ErrorResponse
409The tab is not linked (boards.not_linked), the library diagram changed since (diagram.version_conflict) or is locked (hosting.diagram_locked).ErrorResponse
413The picture is larger than the plan allows.ErrorResponse
422The source has errors, or holds a secret the organisation blocks.ErrorResponse
429Too many requests.ErrorResponse
502The diagram could not be stored.ErrorResponse
503Organisations or boards are not set up on this server.ErrorResponse

Response body

A 200 answer has the type SaveBoardTabResult.

FieldTypeRequiredDescription
diagramobjectyes
diagram.idstringyes
diagram.namestring | nullyes
diagram.versionintegeryes
status"saved" | "held" | "unchanged"yes
approvalobject | nullyes
approval.codestringyes
approval.messagestringyes
tabBoardTabyes
tab.idstringyesat least 12 characters; at most 12 characters; pattern ^[0-9A-Za-z]+$.
tab.namestringyes
tab.kindstringyesThe kind the source declares, such as flow.
tab.positionnumberyes
tab.versionintegeryes
tab.updatedAtintegeryes
tab.updatedBystringyesWho changed it last: an email address, an agent and its member, or a key name.
tab.libraryobject | nullyes
tab.library.diagramIdstringyes
tab.library.versionintegeryes
tab.library.savedbooleanyesTrue while the tab holds what was saved or imported.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools