Use this API to retrieve and update notification settings globally for your account, or for an individual group or project, which overrides the global setting.

Retrieve notification settings for a group

GET /api/v4/groups/{id}/notification_settings

Retrieves the notification level for a specified group. For the custom level, the response also includes an events object with the setting of each notification event: true if the notification is turned on, false if it is turned off, and null if it uses the default setting.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the group

Responses

CodeDescriptionSchema
200OKAPIEntitiesNotificationSetting
400Bad Request—
401Unauthorized—
404Not Found—

Update notification settings for a group

PUT /api/v4/groups/{id}/notification_settings

Updates the notification settings for a specified group. The response includes the notification level. For the custom level, the response also includes an events object with the setting of each notification event: true if the notification is turned on, false if it is turned off, and null if it uses the default setting.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the group

Request body (application/json)

PropertyTypeDescription
change_reviewer_merge_requestBooleanTurn on notifications when a merge request’s reviewer is changed
close_issueBooleanTurn on notifications when an issue is closed
close_merge_requestBooleanTurn on notifications when a merge request is closed
failed_pipelineBooleanTurn on notifications when a pipeline fails
fixed_pipelineBooleanTurn on notifications when a previously failed pipeline is fixed
issue_dueBooleanTurn on notifications when an issue is due tomorrow
levelStringThe group notification level
merge_merge_requestBooleanTurn on notifications when a merge request is merged
merge_when_pipeline_succeedsBooleanTurn on notifications when a merge request is set to auto-merge
moved_projectBooleanTurn on notifications when a project is moved
new_epicBooleanTurn on notifications when a new epic is created. Premium and Ultimate only
new_issueBooleanTurn on notifications when a new issue is created
new_merge_requestBooleanTurn on notifications when a new merge request is created
new_noteBooleanTurn on notifications when a new comment is added
new_releaseBooleanTurn on notifications when a new release is published
push_to_merge_requestBooleanTurn on notifications when someone pushes to a merge request
reassign_issueBooleanTurn on notifications when an issue is reassigned
reassign_merge_requestBooleanTurn on notifications when a merge request is reassigned
reopen_issueBooleanTurn on notifications when an issue is reopened
reopen_merge_requestBooleanTurn on notifications when a merge request is reopened
success_pipelineBooleanTurn on notifications when a pipeline completes successfully

Responses

CodeDescriptionSchema
200OKAPIEntitiesNotificationSetting
400Bad request—
401Unauthorized—
404Not Found—

Retrieve global notification settings

GET /api/v4/notification_settings

Retrieves the global notification level and email address.

Responses

CodeDescriptionSchema
200OKAPIEntitiesGlobalNotificationSetting
401Unauthorized—

Update global notification settings

PUT /api/v4/notification_settings

Updates notification settings and email address.

Request body (application/json)

PropertyTypeDescription
change_reviewer_merge_requestBooleanTurn on notifications when a merge request’s reviewer is changed
close_issueBooleanTurn on notifications when an issue is closed
close_merge_requestBooleanTurn on notifications when a merge request is closed
failed_pipelineBooleanTurn on notifications when a pipeline fails
fixed_pipelineBooleanTurn on notifications when a previously failed pipeline is fixed
issue_dueBooleanTurn on notifications when an issue is due tomorrow
levelStringGlobal notification level
merge_merge_requestBooleanTurn on notifications when a merge request is merged
merge_when_pipeline_succeedsBooleanTurn on notifications when a merge request is set to auto-merge
moved_projectBooleanTurn on notifications when a project is moved
new_epicBooleanTurn on notifications when a new epic is created. Premium and Ultimate only
new_issueBooleanTurn on notifications when a new issue is created
new_merge_requestBooleanTurn on notifications when a new merge request is created
new_noteBooleanTurn on notifications when a new comment is added
new_releaseBooleanTurn on notifications when a new release is published
notification_emailStringEmail address where notifications are sent
push_to_merge_requestBooleanTurn on notifications when someone pushes to a merge request
reassign_issueBooleanTurn on notifications when an issue is reassigned
reassign_merge_requestBooleanTurn on notifications when a merge request is reassigned
reopen_issueBooleanTurn on notifications when an issue is reopened
reopen_merge_requestBooleanTurn on notifications when a merge request is reopened
success_pipelineBooleanTurn on notifications when a pipeline completes successfully

Responses

CodeDescriptionSchema
200OKAPIEntitiesGlobalNotificationSetting
400Bad request—
401Unauthorized—

Retrieve notification settings for a project

GET /api/v4/projects/{id}/notification_settings

Retrieves the notification level for a specified project. For the custom level, the response also includes an events object with the setting of each notification event: true if the notification is turned on, false if it is turned off, and null if it uses the default setting.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project

Responses

CodeDescriptionSchema
200OKAPIEntitiesNotificationSetting
400Bad Request—
401Unauthorized—
404Not Found—

Update notification settings for a project

PUT /api/v4/projects/{id}/notification_settings

Updates the notification settings for a specified project. The response includes the notification level. For the custom level, the response also includes an events object with the setting of each notification event: true if the notification is turned on, false if it is turned off, and null if it uses the default setting.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project

Request body (application/json)

PropertyTypeDescription
change_reviewer_merge_requestBooleanTurn on notifications when a merge request’s reviewer is changed
close_issueBooleanTurn on notifications when an issue is closed
close_merge_requestBooleanTurn on notifications when a merge request is closed
failed_pipelineBooleanTurn on notifications when a pipeline fails
fixed_pipelineBooleanTurn on notifications when a previously failed pipeline is fixed
issue_dueBooleanTurn on notifications when an issue is due tomorrow
levelStringThe project notification level
merge_merge_requestBooleanTurn on notifications when a merge request is merged
merge_when_pipeline_succeedsBooleanTurn on notifications when a merge request is set to auto-merge
moved_projectBooleanTurn on notifications when a project is moved
new_epicBooleanTurn on notifications when a new epic is created. Premium and Ultimate only
new_issueBooleanTurn on notifications when a new issue is created
new_merge_requestBooleanTurn on notifications when a new merge request is created
new_noteBooleanTurn on notifications when a new comment is added
new_releaseBooleanTurn on notifications when a new release is published
push_to_merge_requestBooleanTurn on notifications when someone pushes to a merge request
reassign_issueBooleanTurn on notifications when an issue is reassigned
reassign_merge_requestBooleanTurn on notifications when a merge request is reassigned
reopen_issueBooleanTurn on notifications when an issue is reopened
reopen_merge_requestBooleanTurn on notifications when a merge request is reopened
success_pipelineBooleanTurn on notifications when a pipeline completes successfully

Responses

CodeDescriptionSchema
200OKAPIEntitiesNotificationSetting
400Bad request—
401Unauthorized—
404Not Found—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesGlobalNotificationSetting

PropertyTypeDescription
eventsString—
levelStringNotification level
Allowed values: global, watch, participating, mention, disabled, custom
Example: participating
notification_emailStringEmail address where notifications are sent
Example: user@example.com

APIEntitiesNotificationSetting

PropertyTypeDescription
eventsString—
levelStringNotification level
Allowed values: global, watch, participating, mention, disabled, custom
Example: participating