For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Source Code Manager

Contains APIs related to Source Code Manager

Updates Source Code Manager Details with the given Source Code Manager Id

put
Path parameters
identifierstringRequired

Source Code manager Identifier

Body

This contains details of Source Code Manager

idstringOptional

Source Code Manager Identifier

userIdentifierstringOptional

Id of the User

accountIdentifierstringOptional

Account Identifier for the Entity.

namestringRequired

Name of Source Code Manager

createdAtinteger · int64Optional

Time at which this Source Code Manager was created

lastModifiedAtinteger · int64Optional

Time at which this Source Code Manager was last Updated

typestring · enumOptional

Type of SCM

Possible values:
authenticationobject · SourceCodeManagerAuthenticationOptional

Authentication Details of Source Code Manager

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/source-code-manager/{identifier}
PUT /gateway/ng/api/source-code-manager/{identifier} HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: */*
Accept: */*
Content-Length: 150

{
  "id": "text",
  "userIdentifier": "text",
  "accountIdentifier": "text",
  "name": "text",
  "createdAt": 1,
  "lastModifiedAt": 1,
  "type": "BITBUCKET",
  "authentication": {}
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Deletes the Source Code Manager corresponding to the specified Source Code Manager Id

delete
Path parameters
identifierstringRequired

Source Code manager Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/source-code-manager/{identifier}
DELETE /gateway/ng/api/source-code-manager/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Lists Source Code Managers for the given account

get
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/source-code-manager
GET /gateway/ng/api/source-code-manager?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Creates Source Code Manager

post
Body

This contains details of Source Code Manager

idstringOptional

Source Code Manager Identifier

userIdentifierstringOptional

Id of the User

accountIdentifierstringOptional

Account Identifier for the Entity.

namestringRequired

Name of Source Code Manager

createdAtinteger · int64Optional

Time at which this Source Code Manager was created

lastModifiedAtinteger · int64Optional

Time at which this Source Code Manager was last Updated

typestring · enumOptional

Type of SCM

Possible values:
authenticationobject · SourceCodeManagerAuthenticationOptional

Authentication Details of Source Code Manager

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/source-code-manager
POST /gateway/ng/api/source-code-manager HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: */*
Accept: */*
Content-Length: 150

{
  "id": "text",
  "userIdentifier": "text",
  "accountIdentifier": "text",
  "name": "text",
  "createdAt": 1,
  "lastModifiedAt": 1,
  "type": "BITBUCKET",
  "authentication": {}
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?