Skip to main content
POST
Create SCM config
This endpoint is experimental. It may change or be removed without notice and is not covered by API stability guarantees.

Authorizations

Authorization
string
header
required

Get access to data with your API token. Example header:

Authorization: Bearer 2991e2fb4b540fe75b8f90677b0b892b6314e4961cb001fe6eb452eee248a628

The token can be provisioned from the Tokens section in your Settings, and requires explicitly enabling Web API access.

Path Parameters

deploymentId
string
required

Body

application/json
deploymentId
string
type
enum<string>
Available options:
SCM_TYPE_GITHUB,
SCM_TYPE_GITHUB_ENTERPRISE,
SCM_TYPE_GITLAB,
SCM_TYPE_GITLAB_SELFMANAGED,
SCM_TYPE_BITBUCKET,
SCM_TYPE_BITBUCKET_DATACENTER,
SCM_TYPE_AZURE_DEVOPS,
SCM_TYPE_UNKNOWN,
SCM_TYPE_HARNESS
namespace
string
sourceId
string
baseUrl
string
accessToken
string
scmConfigId
string
subscribe
boolean
autoScan
boolean
autoScanSettings
object

Response

201 - application/json

Created

config
object