Skip to main content
PUT
Replace policy configuration

Authorizations

Authorization
string
header
required

API key as Bearer token

Headers

Reap-Version
enum<string>
required

API version (YYYY-MM-DD)

Available options:
2025-02-14
Example:

"2025-02-14"

Path Parameters

id
string<uuid>
required

Policy ID

Body

Replace a policy configuration. type must match the existing policy.

type
string
required
Allowed value: "MERCHANT_RESTRICTION"
config
object
required

Block transactions whose merchant matches the criteria.

Response

Policy resource

id
string
required

Policy ID. A UUID for your policies; a stable identifier for platform policies.

type
string
required
Allowed value: "MERCHANT_RESTRICTION"
scope
Project · object
required

Where the policy attaches.

status
enum<string>
required
Available options:
ACTIVE,
DISABLED
Example:

"ACTIVE"

name
string
required

Human-readable label.

Required string length: 1 - 128
config
object
required

Block transactions whose merchant matches the criteria.

createdAt
string
required

ISO 8601 creation timestamp.

updatedAt
string
required

ISO 8601 last-update timestamp.