Reference
View as MarkdownCanvas API
Canvas layouts.
2 operations. Every call needs a session cookie or an Authorization: Bearer nct_… token unless marked Public. Conventions, errors and scopes
/projects/{projectId}/environments/{environmentId}/canvasGet an environment's canvas layout
version 0 with an empty layout means nothing was saved yet. The ETag is the version.
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string | |
environmentIdrequired | path | string |
Response 200 · OK · application/json
Canvas
- Layoutrequired
- versioninteger (int64)required
Errors
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}/environments/{environmentId}/canvasSave an environment's canvas layout
Requires If-Match: "<version>"; a stale version returns 412 layout_conflict. The layout is presentation only and never affects deployments.
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string | |
environmentIdrequired | path | string | |
If-Match | header | string | The ETag (version) from the last GET. Use "0" for the first save. |
Request body · application/json · required
PutInputBody3
- Layoutrequired
Response 200 · OK · application/json
Canvas
- Layoutrequired
- versioninteger (int64)required
Errors
401Unauthorized403Forbidden404Not Found412Precondition Failedlayout_conflict422Unprocessable Entity428Precondition Required500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.