Skip to content
Connect an agent

Organisations

Read an organisation's classification settings

The default label of a new diagram, the folders with a default of their own, and "Share only diagrams labelled Public".

GET/orgs/{org}/classification

TL;DR

QuestionAnswer
What does it do?Read an organisation's classification settings.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrganisationClassification.
What can go wrong?401 not signed in; 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 default label of a new diagram, the folders with a default of their own, and "Share only diagrams labelled Public". Any member may read them.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The settings.OrganisationClassification
401Not signed in.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 OrganisationClassification.

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.

See also

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