projects

Gets a Project by identifier

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
required
string
orgIdentifier
string
Default: "default"
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/ng/api/projects/{identifier}
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/projects/:identifier?accountIdentifier=string&orgIdentifier=default' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Update a project by identifier

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
required
string
orgIdentifier
string
Default: "default"
header Parameters
If-Match
string
Request Body schema:
required
object (Project)
Responses
200

successful operation

400

Bad Request

500

Internal server error

put/ng/api/projects/{identifier}
Request samples
{
  • "project": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Delete a project by identifier

Request
Security:
ApiKey (readwrite)
path Parameters
identifier
required
string
query Parameters
accountIdentifier
required
string
orgIdentifier
string
Default: "default"
header Parameters
If-Match
string
Responses
200

successful operation

400

Bad Request

500

Internal server error

delete/ng/api/projects/{identifier}
Request samples
curl -i -X DELETE \
  'https://app.harness.io/gateway/ng/api/projects/:identifier?accountIdentifier=string&orgIdentifier=default' \
  -H 'If-Match: string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": true,
  • "metaData": { },
  • "correlationId": "string"
}

Get Project list

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
hasModule
boolean
Default: true
identifiers
Array of strings
moduleType
string
Enum: "CD" "CI" "CV" "CF" "CE" "CORE" "PMS" "TEMPLATESERVICE"
searchTerm
string
pageIndex
integer <int32>
Default: 0
pageSize
integer <int32> <= 100
Default: 50
sortOrders
Array of strings
Responses
200

successful operation

400

Bad Request

500

Internal server error

get/ng/api/projects
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/ng/api/projects?accountIdentifier=string&orgIdentifier=string&hasModule=true&identifiers=string&moduleType=CD&searchTerm=string&pageIndex=0&pageSize=50&sortOrders=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

Create a Project

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
Default: "default"
Request Body schema:
required
object (Project)
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/ng/api/projects
Request samples
{
  • "project": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}