Skip to main content
PATCH
Update a paywall

Authorizations

X-Api-Key
string
header
required

API key in format mpk_<64 hex chars>. Can alternatively be sent as Authorization: Bearer mpk_....

Path Parameters

id
string
required

Body

application/json
name
string
Required string length: 1 - 100
description
string
targetType
enum<string>
Available options:
PROXY,
ROUTE
targetUrl
string<uri>
targetRoute
string
price
string
currency
enum<string>
Available options:
USDC
networks
enum<string>[]

Replaces the paywall's full network list. Omit to leave it unchanged.

Minimum array length: 1

Supported blockchain network identifier. The value must match the owning Service / Paywall mode: pass a testnet identifier when mode is testnet, and a mainnet identifier when mode is mainnet.

Available options:
base-sepolia,
arc-testnet,
tempo-testnet,
base,
tempo
merchantWallet
string
Pattern: ^0x[a-fA-F0-9]{40}$
timeout
integer
Required range: 30000 <= x <= 3600000
headers
object[]
allowedMethods
enum<string>[]
Minimum array length: 1
Available options:
GET,
POST,
PUT,
PATCH
allowedHeaders
string[]
Maximum string length: 100
queryParams
object[]
serviceId
string | null

Set to null to detach the paywall from its parent service.

enabled
boolean

Response

Updated paywall

data
object
required
meta
object
required