Skip to main content
PUT
/
api
/
public
/
v1
/
block-rules
/
{id}
Update 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"
}

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Path Parameters

id
string
required

Body

application/json
data
object
required

Response

Successful response

The response is of type any.