Skip to main content

Update Wallet Rule

PUT /v1/wallets/{wallet_id}/rules/{id}

Updates an existing wallet rule. The full rule configuration must be provided (this is a full replacement, not a partial update).

Headers

HeaderRequiredValue
AuthorizationYesBearer <token>
Content-TypeYesapplication/json
X-Target-ServerYeswallet-rules

Path Parameters

ParameterTypeRequiredDescription
wallet_idstring (UUID)YesWallet ID
idstring (UUID)YesWallet rule ID

Request Body

The request body has the same structure as Create Wallet Rule. All required fields must be provided.

FieldTypeRequiredValidationDescription
namestringYes--Rule name
typestringYesauto_transfer or permissionless_transfer_limitRule type
network_idstring (UUID)YesValid UUIDNetwork this rule applies to
network_currency_idstring (UUID)YesValid UUIDCurrency this rule applies to
priorityintegerNo1-100Rule priority
auto_transfer_ruleobjectNo--Auto-transfer configuration
sign_and_approve_ruleobjectNo--Approval configuration
permissionless_transfer_limit_ruleobjectNo--Transfer limit configuration
{
"name": "Updated Daily Transfer Limit",
"type": "permissionless_transfer_limit",
"network_id": "770e8400-e29b-41d4-a716-446655440000",
"network_currency_id": "880e8400-e29b-41d4-a716-446655440000",
"permissionless_transfer_limit_rule": {
"max_amount": 20000,
"time_period": "day",
"time_period_value": 1
}
}

Response

200 OK

Rule updated successfully. No response body.

400 Bad Request

401 Unauthorized

404 Not Found

Wallet rule not found.

500 Internal Server Error