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
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <token> |
Content-Type | Yes | application/json |
X-Target-Server | Yes | wallet-rules |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
wallet_id | string (UUID) | Yes | Wallet ID |
id | string (UUID) | Yes | Wallet rule ID |
Request Body
The request body has the same structure as Create Wallet Rule. All required fields must be provided.
| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
name | string | Yes | -- | Rule name |
type | string | Yes | auto_transfer or permissionless_transfer_limit | Rule type |
network_id | string (UUID) | Yes | Valid UUID | Network this rule applies to |
network_currency_id | string (UUID) | Yes | Valid UUID | Currency this rule applies to |
priority | integer | No | 1-100 | Rule priority |
auto_transfer_rule | object | No | -- | Auto-transfer configuration |
sign_and_approve_rule | object | No | -- | Approval configuration |
permissionless_transfer_limit_rule | object | No | -- | 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.