Organisations
Choose the style of your diagrams
Your spacing, line shape, or both, for the flow diagrams you draw on the hosted service when no organisation decides it.
PUT
/user/styleTL;DR
| Question | Answer |
|---|---|
| What does it do? | Choose the style of your diagrams. |
| What does it take? | A JSON body of type SetUserStyleBody. |
| What does it return? | Status 200 with a body of type UserStyle. |
| 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
Your spacing, line shape, or both, for the flow diagrams you draw on the hosted service when no organisation decides it.
Request body
The body has the type SetUserStyleBody.
| Field | Type | Required | Description |
|---|---|---|---|
spacing | "compact" | "normal" | "roomy" | no | |
edges | "orthogonal" | "spline" | "straight" | no |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The choice now. | UserStyle |
| 400 | The body is not valid. | ErrorResponse |
| 401 | Not signed in. | ErrorResponse |
| 403 | The request came from an origin that may not make changes. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
Response body
A 200 answer has the type UserStyle.
| Field | Type | Required | Description |
|---|---|---|---|
spacing | "compact" | "normal" | "roomy" | yes | How far apart the boxes sit: compact, normal, or roomy. normal by default. |
edges | "orthogonal" | "spline" | "straight" | yes | How the lines are drawn: orthogonal (straight runs, rounded corners), spline (curves), or straight (slanted). orthogonal by default. |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |