Update Webhook
This endpoint updates an existing webhook endpoint.
Body
Required
-
Webhook Endpoint URL
-
Webhook Event
Values are
projectCreated
,projectRemoved
,projectUpdated
,taskCreated
,taskRemoved
,taskUpdated
,portfolioCreated
,portfolioRemoved
,portfolioUpdated
,taskgroupCreated
,taskgroupRemoved
,taskgroupUpdated
,messageCreated
,messageRemoved
,messageUpdated
,milestoneCreated
,milestoneRemoved
,milestoneUpdated
,documentCreated
,documentUpdated
,documentRemoved
,fileCreated
,fileRemoved
,fileUpdated
,labelCreated
,labelRemoved
,labelUpdated
,subtaskCreated
,subtaskRemoved
,subtaskUpdated
,timeTrackingRecordCreated
,timeTrackingRecordUpdated
, ortimeTrackingRecordRemoved
. -
Application ID
PUT
/api/v1.0/webhooks/{webhook_id}
curl \
--request PUT 'https://openapi.niftypm.com/api/v1.0/webhooks/{webhook_id}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"endpoint":"string","event":["projectCreated"],"app_id":"string"}'
Request examples
{
"endpoint": "string",
"event": [
"projectCreated"
],
"app_id": "string"
}
Response examples (200)
{
"message": "string",
"webhook_id": "string"
}