PUT /webhooks/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
createdAt string(date-time)
Created at
-
Error
Default value is
0
. -
hash string | null
Hash
-
id integer(int32)
Id
-
instanceMethod string | null
Instance method
-
Instance method trigger
Values are
before
orafter
. Default value isafter
. -
Location
-
Resource
-
Success
Default value is
0
. -
updateInstance boolean | null
Update instance
-
updatedAt string(date-time)
Updated at
-
Webhook type
Values are
save
,instanceMethod
, orcreate
. Default value issave
.
PUT /webhooks/{id}.json
curl \
-X PUT http://api.example.com/v1/webhooks/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"createdAt":"2024-05-04T09:42:00+00:00","error":0,"hash":"string","id":42,"instanceMethod":"string","instanceMethodTrigger":"after","location":"string","resource":"string","success":0,"updateInstance":true,"updatedAt":"2024-05-04T09:42:00+00:00","webhookType":"save"}'
Request example
{
"createdAt": "2024-05-04T09:42:00+00:00",
"error": 0,
"hash": "string",
"id": 42,
"instanceMethod": "string",
"instanceMethodTrigger": "after",
"location": "string",
"resource": "string",
"success": 0,
"updateInstance": true,
"updatedAt": "2024-05-04T09:42:00+00:00",
"webhookType": "save"
}