Skip to content
Connect an agent

Organisations

Turn the legend of your diagrams on or off

on or off, for the flow diagrams you draw on the hosted service when no organisation decides it.

PUT/user/legend

TL;DR

QuestionAnswer
What does it do?Turn the legend of your diagrams on or off.
What does it take?A JSON body of type SetUserLegendBody.
What does it return?Status 200 with a body of type UserLegend.
What can go wrong?400 the body is not valid; 401 not signed in; 403 the request came from an origin that may not make changes; 429 too many requests. Every failure uses the one error envelope.

What it does

on or off, for the flow diagrams you draw on the hosted service when no organisation decides it.

Request body

The body has the type SetUserLegendBody.

FieldTypeRequiredDescription
legend"on" | "off"yes

Responses

StatusMeaningBody
200The choice now.UserLegend
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403The request came from an origin that may not make changes.ErrorResponse
429Too many requests.ErrorResponse

Response body

A 200 answer has the type UserLegend.

FieldTypeRequiredDescription
legend"on" | "off"yesThe legend of flow diagrams you draw on the hosted service, on (the default) or off, when no organisation decides it. A repository's plotwork.config.json and a diagram's header still win.

See also

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