PUT /webhooks/{id}.json

PUT /webhooks/{id}.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

  • createdAt string(date-time)

    Created at

  • error integer(int32) | null Required

    Error

    Default value is 0.

  • hash string | null

    Hash

  • id integer(int32)

    Id

  • instanceMethod string | null

    Instance method

  • instanceMethodTrigger string | null Required

    Instance method trigger

    Values are before or after. Default value is after.

  • location string Required

    Location

  • resource string Required

    Resource

  • success integer(int32) | null Required

    Success

    Default value is 0.

  • updateInstance boolean | null

    Update instance

  • updatedAt string(date-time)

    Updated at

  • webhookType string | null Required

    Webhook type

    Values are save, instanceMethod, or create. Default value is save.

PUT /webhooks/{id}.json
curl \
 --request PUT 'http://api.example.com/v1/webhooks/{id}.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"createdAt":"2025-05-04T09:42:00Z","error":0,"hash":"string","id":42,"instanceMethod":"string","instanceMethodTrigger":"after","location":"string","resource":"string","success":0,"updateInstance":true,"updatedAt":"2025-05-04T09:42:00Z","webhookType":"save"}'
Request examples
{
  "createdAt": "2025-05-04T09:42:00Z",
  "error": 0,
  "hash": "string",
  "id": 42,
  "instanceMethod": "string",
  "instanceMethodTrigger": "after",
  "location": "string",
  "resource": "string",
  "success": 0,
  "updateInstance": true,
  "updatedAt": "2025-05-04T09:42:00Z",
  "webhookType": "save"
}