Home > @uniformdev/canvas > CompositionManagementClient
CompositionManagementClient class
Full-CRUD management client for compositions. Reads the canonical (PUT-safe) shape from the origin host and defaults state to draft and bypassCache to true. Pass format: 'editor' per call for the editor read shape (patterns expanded, still PUT-safe).
Signature:
Extends: ContentClientBase
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Fetches one composition in canonical shape (throws | ||
|
Fetches historical versions of a composition or pattern. | ||
|
Fetches a list of compositions in canonical shape. | ||
|
Deletes across all states. Scoped to a single edition when | ||
|
Creates or updates a composition. Returns the new | ||
|
Saves the draft and publishes in one call (two PUTs). The optimistic concurrency guard, if any, applies to the draft write. | ||
|
Removes only the published state, leaving the draft intact. Scoped to a single edition when |