Home > @uniformdev/canvas > CompositionManagementClient > unpublish

CompositionManagementClient.unpublish() method

Removes only the published state, leaving the draft intact. Scoped to a single edition when editionId is supplied; otherwise unpublishes all editions. To unpublish only the base edition, pass editionId and compositionId as the same value.

Signature:

Parameters

Parameter

Type

Description

selector

CompositionWriteSelector

Returns:

Promise<void>