Create a Deploy
Creating a deploy will trigger a new deploy, starting from a commit.
Auth&ACL
Both users and collaborators can access this API, via OAuth deploy_requests
scope (or HTTP Basic Authentication for development purposes).
Definition
POST https://v1.continuityapp.ws/projects/<project_id>/deploys
Arguments
Arguments | ||
---|---|---|
commit_id | Required |
The Commit ID you want to deploy. The requested commit builds must not be older than 48 hours. |
deploy_strategy_id | Required |
The deploy strategy to use. |
Example request
$ curl https://v1.continuityapp.ws/projects/123456789123456789/deploys?oauth_token=<access_token> \
-d "commit_id=123456789123456788" \
-d "deploy_strategy_id=123456789123456787"
-X POST
Returns
A deploy object will be returned.
Example response
{
"response": {
"id": 123456789123456780,
"id_str": "123456789123456780",
"state": "enqueued",
"deploy_started_at": null,
"deploy_finished_at": null
}
}
Errors
There are no specific errors for this API.
comments powered by Disqus