summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-09-06 14:51:13 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2016-09-13 17:44:19 +0200
commit1c634131fdc2ca46d27166a66ba6072f9f5e2a35 (patch)
treeeebc9ea1f30359c8bdf6c57dddfcedb2f0797390
parentd24b6adfb75c5b8eab4639e684ee45ce2340ce34 (diff)
downloadgitlab-ce-1c634131fdc2ca46d27166a66ba6072f9f5e2a35.tar.gz
Update API documentation
[ci skip]
-rw-r--r--doc/api/ci/builds.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/ci/builds.md b/doc/api/ci/builds.md
index 2a71b087f19..e8d6b750082 100644
--- a/doc/api/ci/builds.md
+++ b/doc/api/ci/builds.md
@@ -38,6 +38,15 @@ POST /ci/api/v1/builds/register
curl --request POST "https://gitlab.example.com/ci/api/v1/builds/register" --form "token=t0k3n"
```
+**Responses:**
+
+| Status | Data |Description |
+|--------|------|---------------------------------------------------------------------------|
+| `201` | yes | When a build is scheduled for a runner |
+| `204` | no | When no builds are scheduled for a runner (for GitLab Runner >= `v1.3.0`) |
+| `403` | no | When invalid token is used or no token is send |
+| `404` | no | When no builds are scheduled for a runner (for GitLab Runner < `v1.3.0`) **or** when the runner is set to `paused` in GitLab runner's configuration page |
+
### Update details of an existing build
```