Skip to main content
POST
Create redaction policy
Creates a new version of the redaction policy for one data source, replacing all of your ALLOW and DENY rules. Send "rules": [] to remove your rules and keep only the mandatory defaults. The response lists the rules you stored. Call Get redaction policy to see them merged with the MANDATORY rules. Collectors pick up the change within about five minutes. For the rule model and path syntax, see Redaction policy.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

GroupID
string<uuid>
required

Your Operata Group ID. Must match the Group ID in your credentials.

Path Parameters

platform
enum<string>
required

Platform: connect (Amazon Connect) or genesys (Genesys Cloud).

Available options:
connect,
genesys
dataSourceType
enum<string>
required

Data source: ctr, cfl, or lexv2 for connect; gcd for genesys.

Available options:
ctr,
cfl,
lexv2,
gcd

Body

application/json
rules
object[]
required

Your ALLOW and DENY rules. Operata drops any MANDATORY rules you send. An empty array removes your rules and leaves only the defaults.

Response

The new policy version. If the rules match the current version, Operata returns that version and creates nothing.

A redaction policy version for one Operata Group and data source.

version
enum<string>
required

Schema version of the document.

Available options:
v1
policyId
string<uuid>
required

ID of this policy version.

platform
string
required

Platform the policy applies to.

Example:

"connect"

dataSourceType
string
required

Data source the policy applies to.

Example:

"ctr"

groupId
string<uuid>
required

Your Operata Group ID.

createdAt
string<date-time>
required

When this policy version was created.

createdBy
string
required

What created this version. system means no policy was ever set and the response holds the defaults only.

Example:

"config-api"

rules
object[]
required

On GET, every rule in effect: the MANDATORY defaults plus your ALLOW and DENY rules. On POST, the ALLOW and DENY rules you stored.

rulesHash
string

SHA-256 hex digest of the effective rule set, independent of rule and field order. Returned on GET only. Compare it between calls to detect a change.