Skip to content

Update notification settings for a project

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

Updates the notification settings for a specified project.

id
required
string

The project ID

Media type application/json
object
level

The project notification level

string
nullable
new_release

Enable/disable this notification

boolean
nullable
new_note

Enable/disable this notification

boolean
nullable
new_issue

Enable/disable this notification

boolean
nullable
reopen_issue

Enable/disable this notification

boolean
nullable
close_issue

Enable/disable this notification

boolean
nullable
reassign_issue

Enable/disable this notification

boolean
nullable
issue_due

Enable/disable this notification

boolean
nullable
new_merge_request

Enable/disable this notification

boolean
nullable
push_to_merge_request

Enable/disable this notification

boolean
nullable
reopen_merge_request

Enable/disable this notification

boolean
nullable
close_merge_request

Enable/disable this notification

boolean
nullable
reassign_merge_request

Enable/disable this notification

boolean
nullable
change_reviewer_merge_request

Enable/disable this notification

boolean
nullable
merge_merge_request

Enable/disable this notification

boolean
nullable
failed_pipeline

Enable/disable this notification

boolean
nullable
fixed_pipeline

Enable/disable this notification

boolean
nullable
success_pipeline

Enable/disable this notification

boolean
nullable
moved_project

Enable/disable this notification

boolean
nullable
merge_when_pipeline_succeeds

Enable/disable this notification

boolean
nullable
approver

Enable/disable this notification

boolean
nullable
service_account_failed_pipeline

Enable/disable this notification

boolean
nullable
service_account_success_pipeline

Enable/disable this notification

boolean
nullable
service_account_fixed_pipeline

Enable/disable this notification

boolean
nullable
Example generated
{
"level": "example",
"new_release": true,
"new_note": true,
"new_issue": true,
"reopen_issue": true,
"close_issue": true,
"reassign_issue": true,
"issue_due": true,
"new_merge_request": true,
"push_to_merge_request": true,
"reopen_merge_request": true,
"close_merge_request": true,
"reassign_merge_request": true,
"change_reviewer_merge_request": true,
"merge_merge_request": true,
"failed_pipeline": true,
"fixed_pipeline": true,
"success_pipeline": true,
"moved_project": true,
"merge_when_pipeline_succeeds": true,
"approver": true,
"service_account_failed_pipeline": true,
"service_account_success_pipeline": true,
"service_account_fixed_pipeline": true
}

OK

Media type application/json
object
level
string
events
string
Example generated
{
"level": "example",
"events": "example"
}

Bad request

Unauthorized

Not Found