Skip to content
Connect an agent

Organisations

Allow or stop diagrams on chosen websites

The owner's setting.

PUT/orgs/{org}/sharing/embed-links

TL;DR

QuestionAnswer
What does it do?Allow or stop diagrams on chosen websites.
What does it take?A JSON body of type SetOrganisationEmbedLinksBody.
What does it return?Status 200 with a body of type OrganisationEmbedLinksChanged.
What can go wrong?400 the body is not valid; 401 not signed in; 403 only the owner may (orgs.forbidden), not on the plan (plan.embed_links_not_included), 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, diagrams may have embed links for named websites (Enterprise). Off ends every embed link at once. Only the owner may.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Request body

The body has the type SetOrganisationEmbedLinksBody.

FieldTypeRequiredDescription
embedLinksbooleanyesTrue to allow diagrams on chosen websites; false to end every embed link.

Responses

StatusMeaningBody
200The setting now, and how many links ended.OrganisationEmbedLinksChanged
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403Only the owner may (orgs.forbidden), not on the plan (plan.embed_links_not_included), 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 OrganisationEmbedLinksChanged.

FieldTypeRequiredDescription
embedLinksbooleanyes
linksEndedintegeryesHow many embed links this call ended: every one when the setting was turned off, none otherwise. minimum 0.

See also

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