Skip to main content
POST
Create SCMConfig

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>
valuedescription
SCM_TYPE_GITHUBGitHub Cloud
SCM_TYPE_GITHUB_ENTERPRISEGitHub Enterprise
SCM_TYPE_GITLABGitLab Cloud
SCM_TYPE_GITLAB_SELFMANAGEDGitLab Self-Managed
SCM_TYPE_BITBUCKETBitbucket Cloud
SCM_TYPE_BITBUCKET_DATACENTERBitbucket Data Center
SCM_TYPE_AZURE_DEVOPSAzure DevOps
SCM_TYPE_UNKNOWN
SCM_TYPE_HARNESSHarness
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