Use this API to manage external status checks.
Get list of project external status checks
GET /api/v4/projects/{id}/external_status_checks
Parameters
| Name | Type | Description |
|---|---|---|
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
idPath, | String or integer | The ID or URL- Example: 11 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create external status check
POST /api/v4/projects/{id}/external_status_checks
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
branch_Required | String | External status check branch scope Allowed values: all_,all_,protected_Minimum length: 1 |
external_Required | String | External status check resource url Example: https: |
nameRequired | String | External status check display name Example: lorem ipsum |
protected_ | Array of integers | IDs of protected branches |
shared_ | String | HMAC shared secret Example: hmac |
timeout_ | Integer | External status check timeout in minutes Example: 5 |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update external status check by id
PUT /api/v4/projects/{id}/external_status_checks/{check_id}
Parameters
| Name | Type | Description |
|---|---|---|
check_Path, | Integer | External status check ID Example: 1 |
idPath, | String or integer | The ID or URL- Example: 11 |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
branch_ | String | External status check branch scope Allowed values: all_,all_,protected_ |
external_ | String | External status check resource url Example: https: |
name | String | Display name of external status check Example: lorem ipsum |
protected_ | Array of integers | IDs of protected branches to scope the rule by |
shared_ | String | HMAC shared secret Example: hmac |
timeout_ | Integer | External status check timeout in minutes Example: 5 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete external status check
DELETE /api/v4/projects/{id}/external_status_checks/{check_id}
Parameters
| Name | Type | Description |
|---|---|---|
check_Path, | Integer | ID of an external status check |
idPath, | String or integer | The ID or URL- Example: 11 |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
Set status of an external status check
POST /api/v4/projects/{id}/merge_requests/{merge_request_iid}/status_check_responses
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID of a project Example: 1 |
merge_Path, | Integer | IID of a merge request Example: 1 |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
external_Required | Integer | ID of an external status check Example: 1 |
shaRequired | String | SHA at HEAD of the source branch Example: 5957a570eee0ac4580ec |
statusRequired | String | Set to passed to pass the check or failed to fail itAllowed values: passed,failedMinimum length: 1 |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List status checks for a merge request
GET /api/v4/projects/{id}/merge_requests/{merge_request_iid}/status_checks
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
merge_Path, | Integer | The internal ID of an issuable |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
404 | Not Found | — |
Retry failed external status check
POST /api/v4/projects/{id}/merge_requests/{merge_request_iid}/status_checks/{external_status_check_id}/retry
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | Project ID Example: 1 |
merge_Path, | Integer | Merge Request IID Example: 1 |
external_Path, | Integer | Failed external status check ID |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Accepted | — |
400 | Bad Request | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesCiPipeline
| Property | Type | Description |
|---|---|---|
archived | Boolean | Example:false |
before_ | String | Example:a91957a858320c0e17f3 |
committed_ | String (date- | Example:2015- |
coverage | Number (float) | Example:98. |
created_ | String (date- | Example:2015- |
detailed_ | Detailed | — |
duration | Integer | Time spent running in seconds Example: 127 |
finished_ | String (date- | Example:2015- |
id | Integer (int64) | Example:1 |
iid | Integer | Example:2 |
project_ | Integer (int64) | Example:3 |
queued_ | Integer | Time spent enqueued in seconds Example: 63 |
ref | String | Example:feature- |
sha | String | Example:0ec9e58fdfca6cdd6652 |
source | String | Example:push |
started_ | String (date- | Example:2015- |
status | String | Example:success |
tag | Boolean | Example:false |
updated_ | String (date- | Example:2015- |
user | APIEntities | — |
web_ | String | Example:https: |
yaml_ | String | Example:widgets: |
APIEntitiesCiPipelineBasic
| Property | Type | Description |
|---|---|---|
created_ | String (date- | Example:2022- |
id | Integer (int64) | Example:1 |
iid | Integer | Example:2 |
project_ | Integer (int64) | Example:3 |
ref | String | Example:feature- |
sha | String | Example:0ec9e58fdfca6cdd6652 |
source | String | Example:push |
status | String | Example:success |
updated_ | String (date- | Example:2022- |
web_ | String | Example:https: |
APIEntitiesCustomAttribute
| Property | Type | Description |
|---|---|---|
key | String | Example:foo |
value | String | Example:bar |
APIEntitiesDiffRefs
| Property | Type | Description |
|---|---|---|
base_ | String | Example:b83d6e391c22777fca1e |
head_ | String | Example:b83d6e391c22777fca1e |
start_ | String | Example:b83d6e391c22777fca1e |
APIEntitiesExternalStatusCheck
| Property | Type | Description |
|---|---|---|
branch_ | String | Example:all_ |
external_ | String | Example:https: |
hmac? | Boolean | Example:true |
id | Integer | Example:100 |
name | String | Example:lorem ipsum |
project_ | Integer | Example:101 |
protected_ | Array of APIEntities | — |
timeout_ | Integer | Example:5 |
APIEntitiesIssuableReferences
| Property | Type | Description |
|---|---|---|
full | String | Example:test&6 |
relative | String | Example:&6 |
short | String | Example:&6 |
APIEntitiesIssuableTimeStats
| Property | Type | Description |
|---|---|---|
human_ | String | Example:3h 30m |
human_ | String | Example:1h |
time_ | Integer | Example:12600 |
total_ | Integer | Example:3600 |
APIEntitiesMergeRequest
| Property | Type | Description |
|---|---|---|
allow_ | Boolean | — |
allow_ | Boolean | — |
assignee | APIEntities | — |
assignees | APIEntities | — |
author | APIEntities | — |
blocking_ | Boolean | — |
changes_ | String | Example:1 |
closed_ | String (date- | Example:2022- |
closed_ | APIEntities | — |
created_ | String (date- | Example:2022- |
description | String | Example:Repellendus impedit et vel velit dignissimos. |
description_ | String | — |
detailed_ | String | Example:mergeable |
diff_ | APIEntities | — |
discussion_ | Boolean | — |
diverged_ | Integer | Example:0 |
downvotes | Integer | — |
draft | Boolean | — |
first_ | Boolean | — |
first_ | String (date- | Example:2022- |
force_ | Boolean | — |
has_ | Boolean | — |
head_ | APIEntities | — |
id | Integer (int64) | Example:84 |
iid | Integer | Example:14 |
imported | Boolean | — |
imported_ | String | Example:bitbucket |
labels | Array of strings | — |
latest_ | String (date- | Example:2022- |
latest_ | String (date- | Example:2022- |
merge_ | String (date- | Example:2022- |
merge_ | String | Example:1234abcd |
merge_ | String | Example:Merge error |
merge_ | String | Example:unchecked |
merge_ | APIEntities | — |
merge_ | Boolean | — |
merged_ | String (date- | Example:2022- |
merged_ | APIEntities | — |
milestone | APIEntities | — |
pipeline | APIEntities | — |
prepared_ | String (date- | Example:2022- |
project_ | Integer (int64) | Example:4 |
rebase_ | Boolean | — |
reference | String | Example:!1 |
references | APIEntities | — |
reviewers | APIEntities | — |
sha | String | Example:1234abcd |
should_ | Boolean | — |
source_ | String | — |
source_ | Integer (int64) | — |
squash | Boolean | — |
squash_ | String | Example:1234abcd |
squash_ | Boolean | — |
state | String | Example:closed |
subscribed | Boolean | — |
target_ | String | — |
target_ | Integer (int64) | — |
task_ | APIEntities | — |
time_ | APIEntities | — |
title | String | Example:Impedit et ut et dolores vero provident ullam est |
title_ | String | — |
updated_ | String (date- | Example:2022- |
upvotes | Integer | — |
user | Object | — |
user. | Boolean | — |
user_ | Integer | — |
web_ | String | Example:https: |
work_ | Boolean | — |
APIEntitiesMergeRequestsExternalStatusCheck
| Property | Type | Description |
|---|---|---|
error_ | String | Example:Timeout error |
external_ | String | Example:https: |
id | Integer | Example:1 |
name | String | Example:Security |
status | String | Example:pending |
APIEntitiesMergeRequestsExternalStatusCheckResponse
| Property | Type | Description |
|---|---|---|
external_ | APIEntities | — |
id | Integer | Example:1 |
merge_ | APIEntities | — |
APIEntitiesMilestone
| Property | Type | Description |
|---|---|---|
created_ | String | — |
description | String | — |
due_ | String | — |
expired | Boolean | — |
group_ | String | — |
id | Integer (int64) | — |
iid | Integer (int64) | — |
project_ | Integer (int64) | — |
start_ | String | — |
state | String | — |
title | String | — |
updated_ | String | — |
web_ | String | — |
APIEntitiesProtectedBranch
| Property | Type | Description |
|---|---|---|
allow_ | Boolean | — |
id | Integer (int64) | Example:1 |
merge_ | Array of APIEntities | — |
name | String | Example:main |
push_ | Array of APIEntities | — |
APIEntitiesProtectedRefAccess
| Property | Type | Description |
|---|---|---|
access_ | Integer | Example:40 |
access_ | String | Example:Maintainers |
deploy_ | Integer (int64) | Example:1 |
group_ | Integer | Example:1 |
id | Integer (int64) | Example:1 |
user_ | Integer | Example:1 |
APIEntitiesTaskCompletionStatus
| Property | Type | Description |
|---|---|---|
completed_ | Integer | Example:3 |
count | Integer | Example:5 |
APIEntitiesUserBasic
| Property | Type | Description |
|---|---|---|
avatar_ | String | Example:/ |
avatar_ | String | Example:https: |
custom_ | Array of APIEntities | — |
id | Integer (int64) | Example:1 |
locked | Boolean | — |
name | String | Example:Administrator |
public_ | String | Example:john@example. |
state | String | Example:active |
username | String | Example:admin |
web_ | String | Example:https: |
DetailedStatusEntity
| Property | Type | Description |
|---|---|---|
action | Object | — |
action. | String | Example:Cancel this job |
action. | String | Example:Are you sure? |
action. | String | Example:cancel |
action. | String | Example:post |
action. | String | Example:/ |
action. | String | Example:Cancel |
details_ | String | Example:/ |
favicon | String | Example:/ |
group | String | Example:success |
has_ | Boolean | Example:true |
icon | String | Example:status_ |
illustration | Object | Example:{"content": |
label | String | Example:passed |
text | String | Example:passed |
tooltip | String | Example:passed |