Skip to main content
PUT
Update risk rules
autoSuspendEnabled is a fixed safety behaviour in the current version: Clink always returns true, and the value is ignored on write. It is present in the request schema for compatibility, but it cannot disable auto-suspend. The PUT response returns the saved settings. A portal:read-only token can read the risk rules but receives 403 on PUT.

Authorizations

Authorization
string
header
required

Portal user token from POST /agent/cwallet/platform/portal/tokens. Reads require portal:read; writes require portal:write.

Body

application/json
singleRechargeLimit
number
required

Single top-up limit in USD; minimum 1.

Required range: x >= 1
Example:

500

dailyTotalLimit
number
required

Daily top-up limit in USD; minimum 1.

Required range: x >= 1
Example:

2000

dailyMaxCount
integer
required

Maximum top-ups per day; minimum 1.

Required range: x >= 1
Example:

5

rechargeInterval
string
required

Cooldown such as 5m, 10m, 30m, or 1h.

Example:

"30m"

manualApprovalEnabled
boolean
required

Whether large top-ups need manual approval.

Example:

true

manualApprovalThreshold
number

Manual-approval threshold in USD.

Example:

1000

autoSuspendEnabled
boolean

Kept for compatibility and ignored on write; it cannot disable auto-suspend.

Example:

true

Response

The saved settings.

code
integer<int32>

200 on success.

Example:

200

msg
string

Result message.

Example:

"Success"

data
object