Skip to content
Connect an agent

Organisations

Change an organisation diagram's classification label

Sets public, internal or confidential.

PATCH/orgs/{org}/diagrams/{id}/classification

TL;DR

QuestionAnswer
What does it do?Change an organisation diagram's classification label.
What does it take?A JSON body of type ClassifyOrganisationDiagramBody.
What does it return?Status 200 with a body of type ClassifiedOrganisationDiagram.
What can go wrong?400 the body is not valid; 401 not signed in; 403 the caller may not make this change (orgs.forbidden), or the request came from an origin that may not make changes; 404 no such organisation or diagram, the caller is not a member, or the diagram is in a folder the caller may not use or held for approval and not theirs; 429 too many requests; 502 the label could not be written into the picture; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Sets public, internal or confidential. The owner and admins change any label either way; a member only raises the label of a diagram they published. A label that does not allow a public link ends the diagram's link.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.
idstringyes

Request body

The body has the type ClassifyOrganisationDiagramBody.

FieldTypeRequiredDescription
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.

Responses

StatusMeaningBody
200The label now, the one before, and whether the public link ended.ClassifiedOrganisationDiagram
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403The caller may not make this change (orgs.forbidden), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation or diagram, the caller is not a member, or the diagram is in a folder the caller may not use or held for approval and not theirs.ErrorResponse
429Too many requests.ErrorResponse
502The label could not be written into the picture.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type ClassifiedOrganisationDiagram.

FieldTypeRequiredDescription
diagramIdstringyes
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.
previousClassificationyesA 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.
shareEndedbooleanyesTrue when the new label ended the diagram's public link: Confidential, or anything but public under "Share only diagrams labelled Public".

See also

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