Update a chainhook

Update a chainhook through the Hiro Platform.


PUT
/v1/ext/{apiKey}/chainhooks/{chainhookUuid}

Path Parameters

apiKeystring

Hiro API key

chainhookUuidstring

Chainhook UUID

Chainhook predicate configuration

Empty Object

Response Body

curl -X PUT "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed" \
  -H "Content-Type: application/json" \
  -d '{}'
const body = JSON.stringify({})

fetch("https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed"
  body := strings.NewReader(`{}`)
  req, _ := http.NewRequest("PUT", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/chainhooks/aa3626dc-2090-49cd-8f1e-8f9994393aed"
body = {}
response = requests.request("PUT", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "status": "string",
  "chainhookUuid": "string"
}
Empty
Empty