PUT
/
triggers
/
{id}
Update Trigger
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"
  }
}

Authorizations

api-key
string
header
required

Path Parameters

id
string
required

Body

application/json
name
string
chain
enum<string>

Blockchain to listen on (bitcoin)

Available options:
bitcoin
Examples:

"bitcoin"

network
enum<string>

Network environment to listen on (mainnet)

Available options:
mainnet,
testnet
Examples:

"mainnet"

type
enum<string>

Trigger type, e.g., transaction

Available options:
transaction
Examples:

"transaction"

webhook_url
string<uri>

Webhook URL to receive events

Examples:

"https://webhook.site/your-endpoint"

filters
Filter · object[]
confirmations
integer

Number of confirmations required for the transaction to be matched by this trigger

Examples:

"5"

status
enum<string>

Status of the trigger, either active or inactive

Available options:
active,
paused
Examples:

"active"

Response

Success

data
object