Update Media AutoDelete Settings For Vhost And Channels
/action/v2/updatemediaautodeletesettingsforvhostandchannels
This action, as its name implies, updates the Media auto-delete settings for a vhost and its channels.
NOTE: The deletion of media via `auto-delete` removes the media from our system and must not be confused with setting a media's status to trashed, which still leaves the media item in our system.
It requires that the user is logged in and must have permissions to the action.
The action redirects the user back to the projectsettings page.
Example
Media Auto-Delete Settings for the Vhost
Media Auto-Delete Interval Media Auto-Delete Moderationstatus
Media Auto-Delete Settings for the Channels
Media Auto-Delete Interval Media Auto-Delete Moderationstatus Name
{$$loop.count}
{$$channel.name}
Delete
NEW
Supported params
Name | Required | Description |
---|---|---|
vid | Required | The id of the vhost (application) |
vhost_delete_media_interval | Required | The media auto-delete interval for the vhost passed. It is the number of days ( passed as an integer ) that uploaded media are kept in the application before deletion from the system. |
vhost_delete_media_moderationstatus | Required | The moderation status of the media to be deleted. |
channels[{$$channel.id}][delete_media_interval] | Required | The delete_media_interval for the channel, as value of the channels{$$channel.id} array. |
channels[{$$channel.id}][delete_media_moderationstatus] | Required | The delete_media_moderationstatus for the channel, as value of the channels{$$channel.id} array. |