curl --request PUT \
--url https://app.tagadapay.com/api/public/v1/block-rules/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "rule_123",
"name": "Updated Block Rule Name",
"enabled": false
}
'{
"id": "rule_123",
"name": "Updated Block Rule Name",
"enabled": false,
"type": "country",
"value": [
"XX",
"YY"
],
"updatedAt": "2024-03-20T10:30:00Z"
}Update an existing block rule
curl --request PUT \
--url https://app.tagadapay.com/api/public/v1/block-rules/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "rule_123",
"name": "Updated Block Rule Name",
"enabled": false
}
'{
"id": "rule_123",
"name": "Updated Block Rule Name",
"enabled": false,
"type": "country",
"value": [
"XX",
"YY"
],
"updatedAt": "2024-03-20T10:30:00Z"
}