Skip to content
Connect an agent

Organisations

Read where the organisation's library is sent

The plan, Plotwork’s issuer for the organisation, whether Google Drive can be connected, and each storage destination with its sending.

GET/orgs/{org}/storage

TL;DR

QuestionAnswer
What does it do?Read where the organisation's library is sent.
What does it take?org in the path.
What does it return?Status 200 with a body of type StorageOverview.
What can go wrong?401 not signed in; 403 not the owner or an admin (orgs.forbidden), the plan does not include it (plan.storage_not_included), or the origin may not make changes; 404 no such organisation or destination, or the caller is not a member; 429 too many requests; 503 sending to your storage is not available on this server (storage.unavailable). Every failure uses the one error envelope.

What it does

The plan, Plotwork’s issuer for the organisation, whether Google Drive can be connected, and each storage destination with its sending. The owner and the admins only.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The storage destinations.StorageOverview
401Not signed in.ErrorResponse
403Not the owner or an admin (orgs.forbidden), the plan does not include it (plan.storage_not_included), or the origin may not make changes.ErrorResponse
404No such organisation or destination, or the caller is not a member.ErrorResponse
429Too many requests.ErrorResponse
503Sending to your storage is not available on this server (storage.unavailable).ErrorResponse

Response body

A 200 answer has the type StorageOverview.

FieldTypeRequiredDescription
availablebooleanyesWhether the plan sends the library to your storage: Pro and Enterprise.
planstringyes
issuerstring | nullyesPlotwork’s issuer for this organisation, which a bucket trusts; null when this server is no issuer.
googleobjectyes
google.configuredbooleanyesWhether this server can connect Google Drive.
google.pickerbooleanyesWhether the Google folder picker is set up, so an existing folder can be chosen.
destinationsStorageDestination[]yesAt most one of each type.
destinations[].idstringyes
destinations[].type"google_drive" | "s3" | "azure_blob" | "gcs"yesgoogle_drive, s3, azure_blob or gcs.
destinations[].state"setup" | "on" | "paused"yessetup while the steps are not done (nothing is sent), on, or paused.
destinations[].connectedbooleanyesFalse for Google Drive until a Google account has granted access; true for a bucket.
destinations[].targetStorageGoogleDriveTarget | StorageS3Target | StorageAzureBlobTarget | StorageGcsTargetyes
destinations[].sendStorageSendyes
destinations[].send.foldersarray | nullyesLibrary folders to send, each with the folders inside it; null for every folder that has no access rule.
destinations[].send.formats("svg" | "source")[]yessvg sends the picture; source sends the .diagram text the picture carries, when it carries one.
destinations[].send.scheme"published" | "light" | "dark"yesA picture that follows the reader’s color scheme is sent as it is, or pinned to light or dark.
destinations[].send.mirrorDeletionsbooleanyesRemove a file when its diagram is deleted from the library or moved out of what is sent.
destinations[].send.skipConfidentialbooleanyesLeave out diagrams labelled Confidential.
destinations[].subjectstring | nullyesThe subject Plotwork’s issuer signs for this destination, which the bucket’s trust names. Null for Google Drive.
destinations[].createdAtintegeryes
destinations[].updatedAtintegeryes
destinations[].statusStorageStatusyes
destinations[].status.queuedintegeryes
destinations[].status.deliveredintegeryes
destinations[].status.droppedintegeryes
destinations[].status.droppedLast24hintegeryes
destinations[].status.filesintegeryesDiagrams the destination holds a copy of now.
destinations[].status.lastSuccessAtinteger | nullyes
destinations[].status.lastErrorAtinteger | nullyes
destinations[].status.lastErrorstring | nullyesWhat failed last, in our words. Never what the destination answered.
destinations[].status.nextAttemptAtinteger | nullyes
destinations[].status.failingSinceinteger | nullyes

See also

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