CI Visibility GitHub Accounts
Update GitHub CI Visibility status
Enable or disable CI Visibility for a GitHub account, one of its repositories, or both in the same request. The account (and, optionally, repository) are identified by name. Account-level and repository-level changes are independent and may both be supplied in the same request. At least one of enabled or repository.enabled must be provided. If the account name matches installations on more than one host, host must be supplied to disambiguate, otherwise a 409 is returned. Returns a 404 if the CI Visibility GitHub integration is not enabled for this organization, or if the given account or repository cannot be found by name.
patch/api/v2/ci/github/accounts
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/tokenScopesci_provider_settings_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"attributes": {
"account": "datadog",
"enabled": true,
"host": "github.com",
"repository": {
"enabled": true,
"name": "shopist"
}
},
"type": "ci_github_account"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"account": "datadog",
"enabled": true,
"host": "github.com",
"repo_count": 12,
"repositories": [
{
"enabled": true,
"name": "shopist"
}
]
},
"id": "github.com/datadog",
"type": "ci_github_account"
}
}Changes
Changes to this operation have not been checked yet.