Skip to content
Connect an agent

Organisations

Move a member's public diagram into the library

Copies the picture into the private library under a new id, then removes the public diagram and its stable links.

POST/orgs/{org}/publishing/public-diagrams/{id}/move

TL;DR

QuestionAnswer
What does it do?Move a member's public diagram into the library.
What does it take?org, id in the path.
What does it return?Status 200 with a body of type MovedMemberDiagram.
What can go wrong?401 not signed in; 403 only the owner or an admin may (orgs.forbidden), the library is full (hosting.quota_exceeded), or the request came from an origin that may not make changes; 404 no such organisation, the caller is not a member of it, or the diagram is not on the list; 409 the organisation does not require its library now (orgs.publish_review_unavailable); 413 the picture is larger than the plan hosts; 429 too many requests; 502 the picture could not be read or stored; nothing was removed; 503 organisations or hosting are not set up on this server. Every failure uses the one error envelope.

What it does

Copies the picture into the private library under a new id, then removes the public diagram and its stable links. The owner or an admin, while the library is required.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.
idstringyes

Responses

StatusMeaningBody
200Moved.MovedMemberDiagram
401Not signed in.ErrorResponse
403Only the owner or an admin may (orgs.forbidden), the library is full (hosting.quota_exceeded), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation, the caller is not a member of it, or the diagram is not on the list.ErrorResponse
409The organisation does not require its library now (orgs.publish_review_unavailable).ErrorResponse
413The picture is larger than the plan hosts.ErrorResponse
429Too many requests.ErrorResponse
502The picture could not be read or stored; nothing was removed.ErrorResponse
503Organisations or hosting are not set up on this server.ErrorResponse

Response body

A 200 answer has the type MovedMemberDiagram.

FieldTypeRequiredDescription
diagramOrganisationDiagramyes
diagram.idstringyesThe handle for the diagram in the routes below.
diagram.namestring | nullyesThe label given at publish, or null.
diagram.folderstring | nullyesThe folder it is filed in, such as Payments/Checkout, or null for the top level.
diagram.scheme"light" | "dark" | "auto"yesThe color scheme it was drawn in: light, dark, or auto.
diagram.bytesintegeryesSize of the stored SVG in bytes.
diagram.createdBystring | nullyesThe person it belongs to: the member who published it, or the person who connected the agent that did. Null when that account has left or an organisation key published it.
diagram.publishedVia"person" | "connection" | "key" | nullyesHow it was published: person (signed in, or with a key the person made), connection (an agent connected to the organisation, whose person is createdBy), or key (an organisation key from Keys and CI). Null for a diagram published before this was recorded.
diagram.publishedKeyobject | nullyesThe key behind a connection or an organisation key. Null for a person, and once the key no longer exists.
diagram.publishedKey.idstringyesThe key's id, as Keys and CI lists it. Never the key itself.
diagram.publishedKey.namestring | nullyesThe key's name, or null once the key is revoked.
diagram.publishedClientstring | nullyesThe client name the agent gave when it connected, such as Claude Code, for a connection only. at most 100 characters.
diagram.createdAtintegeryesWhen it was first published, in milliseconds since the epoch.
diagram.publishedAtintegeryesWhen it was last published, in milliseconds since the epoch. Publishing the same diagram again moves it.
diagram.expiresAtinteger | nullyesWhen it will be deleted, in milliseconds since the epoch, or null when the owner's plan keeps diagrams until they are deleted.
diagram.viewUrlstringyesA page in the portal that shows the diagram to a signed-in member. It is not a link anyone can open: an organisation's diagrams have no public address.
diagram.lockedbooleanyesTrue while the owner has the diagram locked: nobody can delete, rename or move it, its publisher and the owner included, until the owner unlocks it. A lock does not stop it expiring on a plan that expires diagrams.
diagram.lockedAtinteger | nullyesWhen the owner locked it, in milliseconds since the epoch, or null when it is not locked.
diagram.restrictedtruenoPresent, and true, when the owner has restricted this diagram's folder and the caller is allowed in it, so the portal can show it as locked. Absent otherwise. A diagram in a folder the caller may not use is not listed at all.
diagram.keepInsidetruenoPresent, and true, when the folder rule over this diagram keeps its diagrams inside: the svg route refuses ?download=1 and the copy route refuses a copy (403 orgs.folder_restricted). Absent otherwise.
diagram.shareOrganisationDiagramShareyesIts public link while the organisation shares it, or null. Only a diagram someone chose to share has one.
diagram.share.urlstringyesThe public address, {CDN_URL}/l/<token>.svg. Anyone with it can see the picture, without its source. It keeps showing the latest version when the diagram is edited, and never changes.
diagram.share.sharedAtintegeryesWhen the diagram was first shared, in milliseconds since the epoch.
diagram.keptbooleanyes"Keep": true when an owner or admin keeps it from the library retention. The plan's own retention still applies.
diagram.deletesAtinteger | nullyesWhen the retention deletes it, in milliseconds since the epoch: the nearer of the plan's expiry and "Delete library diagrams not updated for". Null when nothing will, and always null under a legal hold.
diagram.classificationClassificationyesA diagram's classification label: public, internal (the default, and what a diagram published before labels reads as) or confidential. Confidential is never shared publicly; under "Share only diagrams labelled Public" only public is.
diagram.pendingbooleanyesTrue while it is held for approval ("Publishing needs approval"): only its publisher and the approvers see it.
diagram.changePendingbooleanyesTrue while a new version of it waits for approval. The library shows this version until then.
diagram.seriesDiagramSeriesyesIts place in a series (the parts of one split import), or null when it is in none.
diagram.series.idstringyesThe series id the parts were published with.
diagram.series.indexintegeryesIts place in the series, from 1; 0 is the whole import combined into one diagram.
diagram.series.totalinteger | nullyesHow many parts the publisher said the series has, or null.
mergedbooleanyesTrue when the library already held exactly this picture, so only the public copy went.

See also

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