Skip to main content
Version: 87.1.1

upsertAudience

POST 

/doc-rules/:docRuleId/audiences/upsert

Creates or updates the user OR customer audience of the DocRule through its linked PerimeterSet (copy-on-write). perimeterEntityTypeId selects which audience to upsert (UserProfile or Customer). The relation is identified by relationId in the body ("" creates a new relation; the linked PerimeterSet may be an existing released one passed via perimeterSetId, or a new draft built from conditions). Provide either perimeterSetId to reuse an existing released PerimeterSet or conditions to create/modify the draft perimeter. Returns the resolved perimeter.

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

Permission (one of)
createDocRule
updateDocRule

Request

Responses