License : Creative Commons 4.0 International
License URL : http://creativecommons.org/licenses/by/4.0/
Terms of service : null
POST /repos/{owner}/{name}
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
||
400 |
Unable to update the Repository record in the database |
No Content |
403 |
Unable to activate the Repository due to insufficient privileges |
No Content |
404 |
Unable to retrieve the Repository from the remote system (ie GitHub) |
No Content |
409 |
Unable to activate the Repository because it is already activate |
No Content |
500 |
Unable to activate the Repository due to an internal server error. This may indicate a problem adding hooks to the remote system (ie Github), generating SSH deployment keys, or persisting to the database. |
No Content |
Type | Name |
---|---|
apiKey |
{
"id": 1,
"scm": "git",
"owner": "octocat",
"name": "hello-world",
"full_name": "octocat/hello-world",
"avatar_url": "https://avatars.githubusercontent.com/u/2181346?v=3",
"link_url": "https://github.com/octocat/hello-world",
"clone_url": "https://github.com/octocat/hello-world.git",
"default_branch": "master",
"timeout": 60,
"private": false,
"trusted": false,
"allow_pr": true,
"allow_push": true,
"allow_deploys": false,
"allow_tags": false
}
GET /repos/{owner}/{name}
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
||
404 |
Unable to find the repository. |
No Content |
Type | Name |
---|---|
apiKey |
{
"id": 1,
"scm": "git",
"owner": "octocat",
"name": "hello-world",
"full_name": "octocat/hello-world",
"avatar_url": "https://avatars.githubusercontent.com/u/2181346?v=3",
"link_url": "https://github.com/octocat/hello-world",
"clone_url": "https://github.com/octocat/hello-world.git",
"default_branch": "master",
"timeout": 60,
"private": false,
"trusted": false,
"allow_pr": true,
"allow_push": true,
"allow_deploys": false,
"allow_tags": false
}
DELETE /repos/{owner}/{name}
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully deleted the Repository |
No Content |
400 |
Unable to remove post-commit hooks from the remote system (ie GitHub) |
No Content |
404 |
Unable to find the Repository in the database |
No Content |
500 |
Unable to update the Repository record in the database |
No Content |
Type | Name |
---|---|
apiKey |
PATCH /repos/{owner}/{name}
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
owner |
owner of the repository |
string |
Body |
repo |
The updated repository JSON |
HTTP Code | Description | Schema |
---|---|---|
200 |
||
400 |
Unable to update the repository in the database. |
No Content |
404 |
Unable to find the repository. |
No Content |
Type | Name |
---|---|
apiKey |
{
"id": 1,
"scm": "git",
"owner": "octocat",
"name": "hello-world",
"full_name": "octocat/hello-world",
"avatar_url": "https://avatars.githubusercontent.com/u/2181346?v=3",
"link_url": "https://github.com/octocat/hello-world",
"clone_url": "https://github.com/octocat/hello-world.git",
"default_branch": "master",
"timeout": 60,
"private": false,
"trusted": false,
"allow_pr": true,
"allow_push": true,
"allow_deploys": false,
"allow_tags": false
}
{
"id": 1,
"scm": "git",
"owner": "octocat",
"name": "hello-world",
"full_name": "octocat/hello-world",
"avatar_url": "https://avatars.githubusercontent.com/u/2181346?v=3",
"link_url": "https://github.com/octocat/hello-world",
"clone_url": "https://github.com/octocat/hello-world.git",
"default_branch": "master",
"timeout": 60,
"private": false,
"trusted": false,
"allow_pr": true,
"allow_push": true,
"allow_deploys": false,
"allow_tags": false
}
GET /repos/{owner}/{name}/builds
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
The recent builds. |
< Build > array |
404 |
Unable to find the Repository in the database |
No Content |
Type | Name |
---|---|
apiKey |
POST /repos/{owner}/{name}/builds/{number}
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
number |
sequential build number |
integer |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully restarted the Build. |
|
404 |
Unable to find the Repository or Build. |
No Content |
409 |
Cannot re-start a Build that is running. |
No Content |
Type | Name |
---|---|
apiKey |
{
"id": 1,
"number": 1,
"event": "push",
"status": "success",
"created_at": 1443677151,
"enqueued_at": 1443677151,
"started_at": 1443677151,
"finished_at": 1443677255,
"commit": "2deb7e0d0cbac357eeb110c8a2f2f32ce037e0d5",
"branch": "master",
"ref": "refs/heads/master",
"remote": "https://github.com/octocat/hello-world.git",
"message": "New line at end of file. --Signed off by Spaceghost",
"timestamp": 1443677255,
"author": "Spaceghost",
"author_avatar": "https://avatars0.githubusercontent.com/u/251370?v=3",
"author_email": "octocat@github.com",
"link_url": "https://github.com/octocat/hello-world/commit/762941318ee16e59dabbacb1b4049eec22f0d303",
"jobs": [
{
"id": 1,
"number": 1,
"status": "success",
"enqueued_at": 1443677151,
"started_at": 1443677151,
"finished_at": 1443677255,
"exit_code": 0,
"environment": { "GO_VERSION": "1.4" }
},
{
"id": 2,
"number": 2,
"status": "success",
"enqueued_at": 1443677151,
"started_at": 1443677151,
"finished_at": 1443677255,
"exit_code": 0,
"environment": { "GO_VERSION": "1.5" }
}
]
}
GET /repos/{owner}/{name}/builds/{number}
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
number |
sequential build number |
integer |
Path |
owner |
owner of the repository |
string |
Query |
branch |
name of the branch |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
The build. |
|
404 |
Unable to find the Repository or Build |
No Content |
Type | Name |
---|---|
apiKey |
{
"id": 1,
"number": 1,
"event": "push",
"status": "success",
"created_at": 1443677151,
"enqueued_at": 1443677151,
"started_at": 1443677151,
"finished_at": 1443677255,
"commit": "2deb7e0d0cbac357eeb110c8a2f2f32ce037e0d5",
"branch": "master",
"ref": "refs/heads/master",
"remote": "https://github.com/octocat/hello-world.git",
"message": "New line at end of file. --Signed off by Spaceghost",
"timestamp": 1443677255,
"author": "Spaceghost",
"author_avatar": "https://avatars0.githubusercontent.com/u/251370?v=3",
"author_email": "octocat@github.com",
"link_url": "https://github.com/octocat/hello-world/commit/762941318ee16e59dabbacb1b4049eec22f0d303",
"jobs": [
{
"id": 1,
"number": 1,
"status": "success",
"enqueued_at": 1443677151,
"started_at": 1443677151,
"finished_at": 1443677255,
"exit_code": 0,
"environment": { "GO_VERSION": "1.4" }
},
{
"id": 2,
"number": 2,
"status": "success",
"enqueued_at": 1443677151,
"started_at": 1443677151,
"finished_at": 1443677255,
"exit_code": 0,
"environment": { "GO_VERSION": "1.5" }
}
]
}
POST /repos/{owner}/{name}/encrypt
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
name of the repository |
string |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
The encrypted parameters. |
No Content |
400 |
Unable to encrypt the parameters. |
No Content |
404 |
Unable to find the repository. |
No Content |
Type | Name |
---|---|
apiKey |
GET /repos/{owner}/{name}/logs/{number}/{job}
Type | Name | Description | Schema |
---|---|---|---|
Path |
job |
sequential job number |
integer |
Path |
name |
name of the repository |
string |
Path |
number |
sequential build number |
integer |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
The logs for the requested job. |
No Content |
404 |
Unable to find the repository, build or job. |
No Content |
Type | Name |
---|---|
apiKey |
DELETE /repos/{owner}/{name}/logs/{number}/{job}
Type | Name | Description | Schema |
---|---|---|---|
Path |
job |
sequential job number |
integer |
Path |
name |
name of the repository |
string |
Path |
number |
sequential build number |
integer |
Path |
owner |
owner of the repository |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully cancelled the Job |
No Content |
404 |
Unable to find the Repository or Job |
No Content |
409 |
Cannot cancel a Job that is already stopped |
No Content |
Type | Name |
---|---|
apiKey |
GET /user
HTTP Code | Description | Schema |
---|---|---|
200 |
The currently authenticated user. |
Type | Name |
---|---|
apiKey |
PATCH /user
Type | Name | Description | Schema |
---|---|---|---|
Body |
user |
Updates to the user. |
HTTP Code | Description | Schema |
---|---|---|
200 |
The updated user. |
|
400 |
Unable to update the user in the database |
No Content |
GET /user/repos
HTTP Code | Description | Schema |
---|---|---|
200 |
< Repo > array |
|
400 |
Unable to retrieve Repository list |
No Content |
POST /users/{login}
HTTP Code | Description | Schema |
---|---|---|
201 |
Returns the created user. |
|
400 |
Error inserting User into the database |
No Content |
Type | Name |
---|---|
apiKey |
GET /users/{login}
HTTP Code | Description | Schema |
---|---|---|
200 |
Returns the user. |
|
404 |
Cannot find user with matching login. |
No Content |
Type | Name |
---|---|
apiKey |
DELETE /users/{login}
HTTP Code | Description | Schema |
---|---|---|
204 |
Successfully deleted the User |
No Content |
400 |
Error deleting the User from the database |
No Content |
403 |
Cannot delete your own User account |
No Content |
404 |
Cannot find the User |
No Content |
Type | Name |
---|---|
apiKey |
PATCH /users/{login}
Type | Name | Description | Schema |
---|---|---|---|
Path |
login |
user login |
string |
Body |
user |
changes to the user |
HTTP Code | Description | Schema |
---|---|---|
200 |
Returns the updated user. |
|
400 |
Error updating the User in the database |
No Content |
Type | Name |
---|---|
apiKey |
A build for a repository.
Name | Description | Schema |
---|---|---|
author |
The login for the author of the commit. |
string |
author_avatar |
The avatar for the author of the commit. |
string |
author_email |
The email for the author of the commit. |
string |
branch |
The branch the commit was pushed to. |
string |
commit |
The commit for the build. |
string |
created_at |
When the build request was received. |
integer (int64) |
deploy_to |
Where the deployment should go. |
string |
enqueued_at |
When the build was enqueued. |
integer (int64) |
finished_at |
When the build was finished. |
integer (int64) |
id |
integer (int64) |
|
jobs |
The jobs associated with this build. A build will have multiple jobs if a matrix build was used or if a rebuild was requested. |
< Job > array |
link_url |
The link to view the repository. This link will point to the repository state associated with the build’s commit. |
string |
message |
The commit message. |
string |
number |
The build number. This number is specified within the context of the repository the build belongs to and is unique within that. |
integer |
ref |
The alias for the commit. |
string |
refspec |
The mapping from the local repository to a branch in the remote. |
string |
remote |
The remote repository. |
string |
started_at |
When the build began execution. |
integer (int64) |
status |
The current status of the build. |
|
timestamp |
When the commit was created. |
integer (int64) |
A feed entry for a build.
Feed entries can be used to display information on the latest builds.
Name | Description | Schema |
---|---|---|
author |
The login for the author of the commit. |
string |
author_avatar |
The avatar for the author of the commit. |
string |
author_email |
The email for the author of the commit. |
string |
branch |
The branch the commit was pushed to. |
string |
commit |
The commit for the build. |
string |
created_at |
When the build request was received. |
integer (int64) |
enqueued_at |
When the build was enqueued. |
integer (int64) |
finished_at |
When the build was finished. |
integer (int64) |
full_name |
The full name of the repository. This is created from the owner and name of the repository. |
string |
link_url |
The link to view the repository. This link will point to the repository state associated with the build’s commit. |
string |
message |
The commit message. |
string |
name |
The name of the repository. |
string |
number |
The build number. This number is specified within the context of the repository the build belongs to and is unique within that. |
integer |
owner |
The owner of the repository. |
string |
ref |
The alias for the commit. |
string |
refspec |
The mapping from the local repository to a branch in the remote. |
string |
remote |
The remote repository. |
string |
started_at |
When the build began execution. |
integer (int64) |
status |
The current status of the build. |
|
timestamp |
When the commit was created. |
integer (int64) |
A single job being executed as part of a build.
Name | Description | Schema |
---|---|---|
enqueued_at |
When the job was enqueued. |
integer (int64) |
environment |
The environment that the job was run with. This is a map containing any values for matrix builds. |
object |
exit_code |
The exit code for the build. |
integer |
finished_at |
When the job finished execution. |
integer (int64) |
id |
The unique identifier for the build. |
integer (int64) |
number |
The job number. This number is specified within the context of the build the job belongs to and is unique within that. |
integer |
started_at |
When the job began execution. |
integer (int64) |
status |
The current status of the job. |
A version control repository.
Name | Description | Schema |
---|---|---|
allow_deploys |
Whether deployment events should trigger a build. |
boolean |
allow_pr |
Whether pull requests should trigger a build. |
boolean |
allow_push |
Whether push events should trigger a build. |
boolean |
allow_tags |
Whether tags should trigger a build. |
boolean |
avatar_url |
The url for the avatar image. |
string |
clone_url |
The url used to clone the repository. |
string |
default_branch |
The default branch of the repository. |
string |
full_name |
The full name of the repository. This is created from the owner and name of the repository. |
string |
id |
The unique identifier for the repository. |
integer (int64) |
link_url |
The link to view the repository. |
string |
name |
The name of the repository. |
string |
owner |
The owner of the repository. |
string |
private |
Whether the repository is publicly visible. |
boolean |
scm |
The source control management being used. Currently this is either 'git' or 'hg' (Mercurial). |
string |
timeout |
The amount of time in minutes before the build is killed. |
integer |
trusted |
Whether the repository has trusted access for builds. If the repository is trusted then the host network can be used and volumes can be created. |
boolean |
The user account.
Name | Description | Schema |
---|---|---|
active |
Whether the account is currently active. |
boolean |
admin |
Whether the account has administrative priviledges. |
boolean |
avatar_url |
The url for the avatar image. |
string |
email |
The email address for the account. |
string |
id |
The unique identifier for the account. |
integer (int64) |
login |
The login name for the account. |
string |