Skip to content

Create or update the Packagist integration

PUT
/api/v4/projects/{id}/integrations/packagist

Creates or updates the Packagist integration.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
1
Media type application/json
object
username
required

Username of a Packagist account.

string
nullable
token
required

API token of the Packagist server.

string
nullable
server

URL of the Packagist server. The default value is https://packagist.org.

string
nullable
push_events

Trigger event for pushes to the repository.

boolean
nullable
merge_requests_events

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

boolean
nullable
tag_push_events

Trigger event for new tags pushed to the repository.

boolean
nullable
use_inherited_settings

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

boolean
nullable
Example generated
{
"username": "example",
"token": "example",
"server": "example",
"push_events": true,
"merge_requests_events": true,
"tag_push_events": true,
"use_inherited_settings": true
}

OK

Media type application/json
object
id
integer format: int64
title
string
slug
string
created_at
string format: date-time
updated_at
string format: date-time
active
boolean
commit_events
boolean
push_events
boolean
issues_events
boolean
incident_events
boolean
alert_events
boolean
confidential_issues_events
boolean
merge_requests_events
boolean
tag_push_events
boolean
deployment_events
boolean
note_events
boolean
confidential_note_events
boolean
pipeline_events
boolean
wiki_page_events
boolean
job_events
boolean
comment_on_event_enabled
boolean
inherited
boolean
vulnerability_events
boolean
Example
{
"id": 75,
"title": "Jenkins CI",
"slug": "jenkins",
"created_at": "2019-11-20T11:20:25.297Z",
"updated_at": "2019-11-20T12:24:37.498Z"
}

Bad request

Unauthorized

Not found

Unprocessable entity