Skip to main content
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": "<string>",
  "filters": [
    {
      "key": "sender",
      "operator": "=",
      "value": "<string>"
    }
  ],
  "confirmations": 123,
  "status": "active"
}
'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "chain": "bitcoin",
    "network": "mainnet",
    "type": "transaction",
    "webhook_url": "<string>",
    "filters": [
      {
        "key": "sender",
        "operator": "=",
        "value": "<string>"
      }
    ],
    "status": "active",
    "event_count": 123,
    "confirmations": 123
  }
}

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
network
enum<string>

Network environment to listen on (mainnet)

Available options:
mainnet,
testnet
type
enum<string>

Trigger type, e.g., transaction

Available options:
transaction
webhook_url
string<uri>

Webhook URL to receive events

filters
Filter · object[]
confirmations
integer<int32>

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

status
enum<string>

Status of the trigger, either active or inactive

Available options:
active,
paused

Response

Success

data
data · object