Skip to content
Connect an agent

Organisations

Keep every diagram the organisation's agents draw

The owner's setting.

PUT/orgs/{org}/sharing/auto-publish

TL;DR

QuestionAnswer
What does it do?Keep every diagram the organisation's agents draw.
What does it take?A JSON body of type SetOrganisationAutoPublishBody.
What does it return?Status 200 with a body of type OrganisationSharing.
What can go wrong?400 the body is not valid; 401 not signed in; 403 only the owner may (orgs.forbidden), or the request came from an origin that may not make changes; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The owner's setting. On, every valid drawing made through the organisation's agent connections or keys is stored in its private library with its source, and a drawing with the same title from the same publisher replaces the one before. Only the owner may.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Request body

The body has the type SetOrganisationAutoPublishBody.

FieldTypeRequiredDescription
autoPublishbooleanyesTrue to keep every valid drawing the organisation's agents make in its private library.

Responses

StatusMeaningBody
200The settings now.OrganisationSharing
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403Only the owner may (orgs.forbidden), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type OrganisationSharing.

FieldTypeRequiredDescription
publicSharingbooleanyes"Allow public sharing of individual diagrams": while true, the owner and admins may share any diagram, and a member a diagram they published, at a public link. Off by default. Turning it off ends every link.
sharedCountintegeryesHow many of the organisation's diagrams have a public link now. Counted against the plan's stableLinks. minimum 0.
autoPublishbooleanyes"Agents publish every diagram they draw": while true, every valid drawing made through one of the organisation's agent connections or keys is stored in its private library with its source. Off by default.

See also

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