GET /api/v1/projects/:hash_id/hooks
Status: 200 OK
[
{
"id": 256,
"url": "http://semaphoreflag.herokuapp.com/qH36J7zzMAxmF72f",
"hook_type": "post_build"
},
{
"id": 257,
"url": "http://semaphoreflag.herokuapp.com/qH36sdffgae2f",
"hook_type": "post_deploy"
}
]
POST /api/v1/projects/:hash_id/hooks
{
"url": "http://google.com",
"hook_type": "all"
}
Required:
Status: 200 OK
{
"id": 266,
"url": "http://google.com",
"hook_type": "all"
}
PUT /api/v1/projects/:hash_id/hooks/:webhook_id
{
"url": "http://yahoo.com",
"hook_type": "all"
}
Required:
Status: 200 OK
{
"id": 266,
"url": "http://yahoo.com",
"hook_type": "all"
}
DELETE /api/v1/projects/:hash_id/hooks/:webhook_id
Status: 204 No Content
Semaphore Docs are open source — Edit on GitHub
2009-2018 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.