publishMediaFolder
POST/media-folders/:folderId/publish
Publishes a draft MediaFolder, moving it from ProcessingStatus.Draft to
ProcessingStatus.Released and closing the editing session. It releases the perimeters of all
the groups of the folder and runs the blocking validations on each of them:
- the user audience has at least one inclusion condition (
IncludeorUnrestricted); - the referenced clusters and hierarchies cover the whole validity period of the group;
- the groups are consistent with
recipientTypeId: when the folder targets customers every group has both perimeters, when it targets users only the user one; - the folder has at least one group and at least one associated category;
- the
maxFoldersPerCategorylimit is respected on the associated categories.
When a validation fails the folder stays in draft and the 400 states which group has which
problem.
To access the service you need at least one of the following permissions:
| Permission (one of) |
|---|
| publishMediaFolder |