The UpdateMediaPublishState API updates the status of media publishing. Publishing is equivalent to setting all media resources to be played. The screenshot file access permission inherits the access permission on the bucket that stores the screenshot file. Media resources that are not published are set to Private.
|Parameter||Type||Required or not||Description|
|Action||String||Yes||API of the action, system required parameter. Set this parameter to UpdateMediaPublishState.|
|Publish||Boolean||Yes||Publication status, which can be True or False.|
Rules of media publication status transition:
The default status of media publication is “Initial”. A media file is in the default status under two conditions:
After a media file is generated (a media workflow is also triggered) for the first time, the media file is neither published nor unpublished while workflow execution is in progress. The media file is in “Initial” state. After workflow execution is complete, the media file is set to a definite state (according to the workflow configuration).
After a media file is deleted, the publication status is meaningless and the file is in “Initial” state. To restore the deleted media file to the library, execute a workflow on the file as new media.
- Transition rules
|Caller||Current status||Status after transition||Allowed or not|