Skip to main content
Version: Next

upsertMediaFolderContentAudience

POST 

/media-folder-contents/:mediaFolderContentId/audiences/upsert

Creates or updates the user OR customer audience of a MediaFolderContent through its linked PerimeterSet (copy-on-write). perimeterEntityTypeId selects which audience to upsert: PerimeterEntityType.UserProfile, always present, or PerimeterEntityType.CustomerAccount, only when the folder targets customer accounts. The relation is identified by relationId in the body (the empty string creates a new relation).

Provide either perimeterSetId to reuse an existing released PerimeterSet or conditions to create or modify the draft perimeter. The validity dates of the PerimeterSet_Entity records are set by the server from the dates of the group and must not be sent.

The response is the resolved perimeter, not the group; the recomputed suggested name of the group is returned in meta.perimetersDescr.

To access the service you need at least one of the following permissions:

Permission (one of)
upsertMediaFolderContentAudience

Request​

Responses​