Source Code Manager

Contains APIs related to Source Code Manager

Lists Source Code Managers for the given account

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
400

Bad Request

500

Internal Server Error

default

Paginated list of Source Code Managers of given account

get/ng/api/source-code-manager
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/source-code-manager?accountIdentifier=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Creates Source Code Manager

Request
Security:
ApiKey (readwrite)
Request Body schema: */*

This contains details of Source Code Manager

Responses
400

Bad Request

500

Internal Server Error

default

This contains details of the newly created Source Code Manager

post/ng/api/source-code-manager
Request samples
curl -i -X POST \
  https://app.harness.io/gateway/ng/api/source-code-manager \
  -H 'Content-Type: */*' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '[object Object]'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

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

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string

Source Code manager Identifier

Request Body schema: */*

This contains details of Source Code Manager

Responses
400

Bad Request

500

Internal Server Error

default

This contains details of the updated Source Code Manager for the specific Source Code Manager Id

put/ng/api/source-code-manager/{identifier}
Request samples
curl -i -X PUT \
  https://app.harness.io/gateway/ng/api/source-code-manager/:identifier \
  -H 'Content-Type: */*' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '[object Object]'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

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

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string

Source Code manager Identifier

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
400

Bad Request

500

Internal Server Error

default

Successfully deleted Source Code Manager for the give Source Code Manager Id

delete/ng/api/source-code-manager/{identifier}
Request samples
curl -i -X DELETE \
  'https://app.harness.io/gateway/ng/api/source-code-manager/:identifier?accountIdentifier=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}