curl --request PUT \
--url https://xbt-mainnet.gomaestro-api.org/v0/eventmanager/triggers/{id} \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"confirmations": "5",
"status": "active"
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"status": "active",
"event_count": "40",
"confirmations": "5"
}
}
Update a trigger
Allows modification of a trigger’s properties identified by its unique id
.
curl --request PUT \
--url https://xbt-mainnet.gomaestro-api.org/v0/eventmanager/triggers/{id} \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"confirmations": "5",
"status": "active"
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"status": "active",
"event_count": "40",
"confirmations": "5"
}
}
Success
The response is of type object
.