Skip to main content

Set a GitHub connection's features.

PATCH/api/v1/github-installations/{github_installation_id}/featuresconnectors:write

Replaces the connection's enabled features (actions, pull_requests, issues, workflow_files, contents_write; an empty list is the read-only default). The set is saved either way; it is active when GitHub has granted what the features need, else reconsent_url is where the account owner approves the App's permissions.

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP toolupdate_github_installation_features
Portal permissionsmanage_github_installations

Parameters​

NameInTypeRequiredDescription
github_installation_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonGitHubInstallationFeaturesPatchInput
application/merge-patch+jsonGitHubInstallationFeaturesPatchInput

Responses​

StatusDescriptionBody
200Success.application/json GitHubInstallationFeatures or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

GitHubInstallationFeatures​

FieldTypeRequiredDescription
account_loginstring or nullRequired
activeboolean or nullRequiredWhether the enabled features are active (GitHub has granted what they need). Null on a read: it is evaluated when the features are set.
enabled_featuresarray of stringRequired
github_installation_idstringRequired
manage_urlstringRequired
reconsent_urlstring or nullRequiredWhere the account owner approves the App's permissions, when the features are not active.

GitHubInstallationFeaturesPatchInput​

FieldTypeRequiredDescription
account_loginstring or nullOptional
activeboolean or nullOptional
enabled_featuresarray of string or nullOptional
github_installation_idstring or nullOptional
manage_urlstring or nullOptional
reconsent_urlstring or nullOptional