Skip to content
Connect an agent

Organisations

Set an organisation's classification settings

Replaces the default label, the folders' defaults and, for the owner, "Share only diagrams labelled Public", which ends the links of shared diagrams not labelled public when it goes on.

PUT/orgs/{org}/classification

TL;DR

QuestionAnswer
What does it do?Set an organisation's classification settings.
What does it take?A JSON body of type SetOrganisationClassificationBody.
What does it return?Status 200 with a body of type OrganisationClassificationChanged.
What can go wrong?400 the body is not valid; 401 not signed in; 403 only the owner or an admin may change them, and only the owner "share only diagrams labelled public" (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; 422 a folder or a label cannot be used (validation.failed); 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Replaces the default label, the folders' defaults and, for the owner, "Share only diagrams labelled Public", which ends the links of shared diagrams not labelled public when it goes on. The owner or an admin.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Request body

The body has the type SetOrganisationClassificationBody.

FieldTypeRequiredDescription
defaultClassificationyesA 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.
sharePublicOnlybooleannoOnly the owner may change it; left out, it stays as it is.
foldersobject[]yesAt most 50 folders, each a folder path.
folders[].folderstringyesat least 1 character; at most 300 characters.
folders[].classificationstringyesat least 1 character; at most 20 characters.

Responses

StatusMeaningBody
200The settings now, and how many public links ended.OrganisationClassificationChanged
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403Only the owner or an admin may change them, and only the owner "Share only diagrams labelled Public" (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
422A folder or a label cannot be used (validation.failed).ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type OrganisationClassificationChanged.

FieldTypeRequiredDescription
defaultClassificationyesA 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.
sharePublicOnlybooleanyes"Share only diagrams labelled Public": while true, only a diagram labelled public may have a public link. The owner's setting.
foldersobject[]yesThe folders with a default label of their own. A new diagram filed in one, or in a folder inside it, gets it; the deepest wins.
folders[].folderstringyesat least 1 character; at most 300 characters.
folders[].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.
linksEndedintegeryesHow many public links ended because "Share only diagrams labelled Public" was turned on and their diagram is not labelled public. minimum 0.

See also

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