Skip to main content
PATCH
Update an existing third-party integration

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required
integrationId
string
required

Body

application/json
type
string
required

The type of the integration

repository
string
required

The Bitbucket repository (in the form user/repo)

fetch_branches
boolean

Whether or not to fetch branches

prune_branches
boolean

Whether or not to remove branches that disappeared remotely (requires fetch_branches)

environment_init_resources
enum<string>

The resources used when initializing a new service

Available options:
default,
manual,
minimum,
parent
app_credentials
OAuth2 consumer · object | null

The OAuth2 consumer information (optional)

addon_credentials
Addon credential · object | null

The addon credential information (optional)

build_pull_requests
boolean

Whether or not to build pull requests

pull_requests_clone_parent_data
boolean

Whether or not to clone parent data when building merge requests

pull_requests_max_pages
integer | null

Maximum number of Bitbucket pull request pages to iterate when syncing pull requests. Null means no limit

resync_pull_requests
boolean

Whether or not pull request environment data should be re-synced on every build

Response

default - application/json
status
string
required

The status text of the response

code
integer
required

The status code of the response

Last modified on August 7, 2026