From 1c634131fdc2ca46d27166a66ba6072f9f5e2a35 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Tue, 6 Sep 2016 14:51:13 +0200 Subject: Update API documentation [ci skip] --- doc/api/ci/builds.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') 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 ``` -- cgit v1.2.3