Use this API to subscribe to and unsubscribe from issues, merge requests, and labels in projects and groups.
All API calls to non-public information require authentication.
Subscribe to a group label
POST /api/v4/groups/{id}/labels/{subscribable_id}/subscribe
Subscribes the currently authenticated user to a specified group label. They will receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Unsubscribe to a group label
POST /api/v4/groups/{id}/labels/{subscribable_id}/unsubscribe
Unsubscribes the currently authenticated user from a specified group label. They will no longer receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The group ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Subscribe to an issue
POST /api/v4/projects/{id}/issues/{subscribable_id}/subscribe
Subscribes the currently authenticated user to a specified issue. They will receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Unsubscribe to an issue
POST /api/v4/projects/{id}/issues/{subscribable_id}/unsubscribe
Unsubscribes the currently authenticated user from a specified issue. They will no longer receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Subscribe to a project label
POST /api/v4/projects/{id}/labels/{subscribable_id}/subscribe
Subscribes the currently authenticated user to a specified project label. They will receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Unsubscribe to a project label
POST /api/v4/projects/{id}/labels/{subscribable_id}/unsubscribe
Unsubscribes the currently authenticated user from a specified project label. They will no longer receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Subscribe to a merge request
POST /api/v4/projects/{id}/merge_requests/{subscribable_id}/subscribe
Subscribes the currently authenticated user to a specified merge request. They will receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Unsubscribe to a merge request
POST /api/v4/projects/{id}/merge_requests/{subscribable_id}/unsubscribe
Unsubscribes the currently authenticated user from a specified merge request. They will no longer receive notifications on changes to this item.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The project ID |
subscribable_Path, | String | The ID of a resource |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
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 |
APIEntitiesGroupLabel
| Property | Type | Description |
|---|---|---|
archived | Boolean | Example:false |
closed_ | Integer | Example:0 |
color | String | Example:#FF0000 |
description | String | Example:Bug reported by user |
description_ | String | Example:<p>Bug reported by user</ |
id | Integer (int64) | Example:1 |
name | String | Example:bug |
open_ | Integer | Example:1 |
open_ | Integer | Example:1 |
subscribed | Boolean | Example:false |
text_ | String | Example:#FFFFFF |
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 |
APIEntitiesIssue
| Property | Type | Description |
|---|---|---|
_ | Object | — |
_ | String | Example:http: |
_ | String | Example:http: |
_ | String | Example:http: |
_ | String | Example:http: |
_ | String | Example:http: |
assignee | APIEntities | — |
assignees | APIEntities | — |
author | APIEntities | — |
closed_ | String (date- | Example:2022- |
closed_ | APIEntities | — |
confidential | Boolean | — |
created_ | String (date- | Example:2022- |
description | String | Example:Repellendus impedit et vel velit dignissimos. |
discussion_ | Boolean | — |
downvotes | Integer | — |
due_ | String (date) | Example:2022- |
has_ | Boolean | Example:true |
id | Integer (int64) | Example:84 |
iid | Integer | Example:14 |
imported | Boolean | Example:false |
imported_ | String | Example:github |
issue_ | String | Example:issue |
labels | Array of strings | Example:["bug"] |
merge_ | Integer | — |
milestone | APIEntities | — |
moved_ | Integer (int64) | Example:1 |
project_ | Integer (int64) | Example:4 |
references | APIEntities | — |
service_ | String | Example:user@example. |
severity | String | One of [“UNKNOWN”, |
start_ | String (date) | Example:2022- |
state | String | Example:closed |
subscribed | Boolean | Example:false |
task_ | APIEntities | — |
task_ | String | Example:2 of 4 tasks completed |
time_ | APIEntities | — |
title | String | Example:Impedit et ut et dolores vero provident ullam est |
type | String | One of [“ISSUE”, Example: ISSUE |
updated_ | String (date- | Example:2022- |
upvotes | Integer | — |
user_ | Integer | — |
web_ | String | Example:http: |
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 | — |
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 | — |
APIEntitiesProjectLabel
| Property | Type | Description |
|---|---|---|
archived | Boolean | Example:false |
closed_ | Integer | Example:0 |
color | String | Example:#FF0000 |
description | String | Example:Bug reported by user |
description_ | String | Example:<p>Bug reported by user</ |
id | Integer (int64) | Example:1 |
is_ | Boolean | — |
name | String | Example:bug |
open_ | Integer | Example:1 |
open_ | Integer | Example:1 |
priority | Integer | Example:10 |
subscribed | Boolean | Example:false |
text_ | String | Example:#FFFFFF |
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 |