Skip to content
Connect an agent

Organisations

Read the legend of an organisation's diagrams

members (each member's own), on, off, or required, for the flow diagrams drawn for the organisation on the hosted service.

GET/orgs/{org}/legend

TL;DR

QuestionAnswer
What does it do?Read the legend of an organisation's diagrams.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrganisationLegend.
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

members (each member's own), on, off, or required, for the flow diagrams drawn for the organisation on the hosted service. A session, or a key of the organisation, so a GitHub Action run reads it.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The choice.OrganisationLegend
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 OrganisationLegend.

FieldTypeRequiredDescription
legend"members" | "on" | "off" | "required"yesThe legend of flow diagrams drawn for the organisation on the hosted service: members (each member's own choice, the default), on or off (a repository's plotwork.config.json and a diagram's header still win), or required (drawn whatever a repository or a header says).

See also

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