When creating a canvas_page via POST /canvas/api/v0/content/canvas_page, the UUID is always auto-generated by Drupal. External clients (e.g. CLI tools) that manage content across environments need to control the UUID to ensure stable references.

Add support for an optional uuid field in the POST request body. When provided, it is set on the new entity before saving. Duplicate creation is unaffected — duplicates always receive a new UUID. Invalid or already-used UUIDs are rejected via the existing entity validation flow.

Issue fork canvas-3582840

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

attilatilman created an issue. See original summary.

attilatilman’s picture

Assigned: attilatilman » Unassigned
Status: Active » Needs review

hooroomoo made their first commit to this issue’s fork.

hooroomoo’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.