Skip to main content
PUT
Replace your application's acceptance policy

Authorizations

X-API-Key
string
header
required

Headers

if-match
string | null

The ETag of the version the body was edited from, as a read or a replace returned it. It matches while it names the current policy_version_id, whatever the audiences hash in it.

Body

The policy body a replace takes, exactly as a read returns it under policy.

steps
PolicyStep (v1) · object[]
required

The steps, most specific first.

conversions
Conversion (v1) · object[]

What counts as a sale.

Response

The new current version.

One immutable version of an application's acceptance policy.

policy_version_id
string<uuid>
required

The version's id.

version_number
integer
required

Its number; version 1 is the default.

Required range: x >= 1
environment
enum<string>
required

The application's environment.

Available options:
sandbox,
production
policy_hash
string
required

sha256: and the hex digest of the policy body the SDK ran.

Pattern: ^sha256:[0-9a-f]{64}$
Example:

"sha256:0000000000000000000000000000000000000000000000000000000000000000"

created_at
string<date-time>
required

When the version was made.

minimum_policy_schema_version
integer
required

The policy feature level an SDK needs to enforce this version; below it the SDK runs it report-only.

Required range: x >= 1
policy
PolicyBody (v1) · object
required

The rules.

warnings
PolicyWarning (v1) · object[]
required

Steps or rules that are allowed but suspect.

created_by
ActedBy (v1) · object | null

Who made it; null for the seeded default.