Skip to content

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.

id
required
string

The group ID

subscribable_id
required
string

The ID of a resource

Created

Media type application/json
object
id
integer format: int64
name
string
description
string
text_color
string
description_html
string
color
string
archived
boolean
open_issues_count
integer
closed_issues_count
integer
open_merge_requests_count
integer
subscribed
boolean
Example
{
"id": 1,
"name": "bug",
"description": "Bug reported by user",
"text_color": "#FFFFFF",
"description_html": "<p>Bug reported by user</p>",
"color": "#FF0000",
"archived": false,
"open_issues_count": 1,
"closed_issues_count": 0,
"open_merge_requests_count": 1,
"subscribed": false
}

Bad Request

Not Found