Home > @uniformdev/canvas > CompositionManagementClient > saveAndPublish
CompositionManagementClient.saveAndPublish() method
Saves the draft and publishes in one call (two PUTs). The optimistic concurrency guard, if any, applies to the draft write.
Signature:
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
body |
ExceptProject<Omit<CompositionPutParameters, 'state'>> | |
|
opts |
(Optional) |
Returns:
Promise<SaveResult>