...
Code Block |
---|
|
{
"meta": {
"status": "ok_created",
"more_info": "https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok_created",
"message": "A resource was successfully created."
},
"response": {
"subscription": {
"event_id": "assign_task",
"user": {
"email": "simon.jackson@accelo.com",
"name": "Simon Jackson",
"id": 1
},
"user_id": 1,
"user_deployment": "hq",
"trigger_url": "http://your-domain.com/callback",
"content_type": "application/x-www-form-urlencoded",
"subscription_id": "583f4b8028dc59073860a6d1",
"trigger_type": "update",
"trigger_table": "task"
}
}
} |
Delete Webhook Subscription
Delete a given webhook subscription. Once this is done, you will no longer receive webhooks to the registered URL.
Code Block |
---|
DELETE /api/v0/webhooks/subscriptions/{subscription_id}.{json|xml|yml} |
Trigger Webhook Subscription
Manually trigger a given subscription. This will queue the event to all other subscriptions and execute asynchronously. Use this if you want to trigger a subscription for an event for others, otherwise please see dispatch webhook subscription.
Code Block |
---|
POST /api/v0/webhooks/subscriptions/{subscription_id}/trigger.{json|xml|yml} |
Dispatch Webhook Subscription
Manually dispatch a given subscription synchronously. Alike triggering, this will only execute the current subscription so other subscriptions of the even will not be affected. As it's synchronously you will get the HTTP status of the webhook result.
Code Block |
---|
POST /api/v0/webhooks/subscriptions/{subscription_id}/dispatch.{json|xml|yml} |
Sample Response
Code Block |
---|
{
"status": 200
} |