PUT
/
webhooks
/
{webhook_id}
curl --request PUT \
  --url https://api.rootfi.dev/webhooks/{webhook_id} \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "webhook": {
    "operations": [
      "CREATE"
    ]
  }
}'
{
  "data": {
    "created_at": "2021-08-10T18:00:00.000Z",
    "data_models": [
      "ACCOUNTS"
    ],
    "headers": {
      "api_key": "Rootfi API Key"
    },
    "id": "abcdefghijklmnopq",
    "name": "New Webhook",
    "operations": [
      "CREATE"
    ],
    "org_id": 1,
    "type": "DATA_MODEL_CHANGES",
    "url": "https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697"
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-08-10T18:00:00.000Z",
  "response_timestamp": "2021-08-10T18:00:00.000Z"
}

Authorizations

api_key
string
headerrequired

Path Parameters

webhook_id
string
required

The ID of the webhook to update.

Body

application/json
webhook
object
required

Response

200 - application/json
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server

data
object
required