integrations

Create or update the Gitlab Slack Application integration

Creates or updates the Gitlab Slack Application integration.

put/api/v4/projects/{id}/integrations/gitlab-slack-application

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idinteger required

Request body

channelstring

Default channel to use if no other channel is configured.

notify_only_broken_pipelinesboolean

Send notifications for broken pipelines.

notify_only_when_pipeline_status_changesboolean

Send notifications only when the pipeline status changes.

branches_to_be_notifiedstring

Branches to send notifications for. Valid options are all, default, protected, and default_and_protected. The default value is default.

labels_to_be_notifiedstring

Labels to send notifications for. Leave blank to receive notifications for all events.

labels_to_be_notified_behaviorstring

Labels to be notified for. Valid options are match_any and match_all. The default value is match_any.

push_channelstring

The name of the channel to receive push_events notifications

issue_channelstring

The name of the channel to receive issues_events notifications

incident_channelstring

The name of the channel to receive incident_events notifications

alert_channelstring

The name of the channel to receive alert_events notifications

confidential_issue_channelstring

The name of the channel to receive confidential_issues_events notifications

merge_request_channelstring

The name of the channel to receive merge_requests_events notifications

note_channelstring

The name of the channel to receive note_events notifications

confidential_note_channelstring

The name of the channel to receive confidential_note_events notifications

tag_push_channelstring

The name of the channel to receive tag_push_events notifications

deployment_channelstring

The name of the channel to receive deployment_events notifications

pipeline_channelstring

The name of the channel to receive pipeline_events notifications

wiki_page_channelstring

The name of the channel to receive wiki_page_events notifications

vulnerability_channelstring

The name of the channel to receive vulnerability_events notifications

push_eventsboolean

Trigger event for pushes to the repository.

issues_eventsboolean

Trigger event when a work item is created, updated, or closed.

confidential_issues_eventsboolean

Trigger event when a confidential work item is created, updated, or closed.

merge_requests_eventsboolean

Trigger event when a merge request is created, updated, or merged.

note_eventsboolean

Trigger event for new comments.

confidential_note_eventsboolean

Trigger event for new comments on confidential work items.

tag_push_eventsboolean

Trigger event for new tags pushed to the repository.

pipeline_eventsboolean

Trigger event when a pipeline status changes.

wiki_page_eventsboolean

Trigger event when a wiki page is created or updated.

deployment_eventsboolean

Trigger event when a deployment starts or finishes.

incident_eventsboolean

Trigger event when an incident is created.

work_item_eventsboolean
confidential_work_item_eventsboolean
vulnerability_eventsboolean
alert_eventsboolean

Trigger event when a new, unique alert is recorded.

use_inherited_settingsboolean

Indicates whether to inherit the default settings. Defaults to false.

Response

Create or update the Gitlab Slack Application integration

idinteger required
titlestring required
slugstring required
created_atstring date-time required
updated_atstring date-time required
activeboolean required
commit_eventsboolean required
push_eventsboolean required
issues_eventsboolean required
incident_eventsboolean required
alert_eventsboolean required
confidential_issues_eventsboolean required
merge_requests_eventsboolean required
tag_push_eventsboolean required
deployment_eventsboolean required
note_eventsboolean required
confidential_note_eventsboolean required
pipeline_eventsboolean required
wiki_page_eventsboolean required
job_eventsboolean required
comment_on_event_enabledboolean required
inheritedboolean required
vulnerability_eventsboolean required

Example response

{
  "id": 75,
  "title": "Jenkins CI",
  "slug": "jenkins",
  "created_at": "2019-11-20T11:20:25.297Z",
  "updated_at": "2019-11-20T12:24:37.498Z"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.