Project
This contains APIs related to Project as defined in Harness
Lists all Projects the user is a member of by using the user's API key token.
Account Identifier for the Entity.
Organization Identifier for the Entity.
This boolean specifies whether to Filter Projects which has the Module of type passed in the module type parameter or to Filter Projects which does not has the Module of type passed in the module type parameter
trueThis is the list of Project IDs. Details specific to these IDs would be fetched.
Filter Projects by module type
This would be used to filter Projects. Any Project having the specified string in its Name, ID and Tag would be filtered.
falsePage Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Paginated list of Projects
GET /gateway/ng/api/projects?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 a new Harness Project.
Account Identifier for the Entity.
Organization identifier for the Project. If left empty, the Project is created under Default Organization
defaultBad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns created Project
POST /gateway/ng/api/projects?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 165
{
"project": {
"orgIdentifier": "text",
"identifier": "text",
"name": "text",
"color": "text",
"modules": [
"CD"
],
"description": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Lists a Project's details for the given ID.
Project Identifier for the Entity.
Account Identifier for the Entity.
Organization identifier for the project. If left empty, Default Organization is assumed
defaultBad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns Project having ID as specified in request
GET /gateway/ng/api/projects/{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"
}
]
}Updates Project details for the given ID.
Project Identifier for the Entity.
Account Identifier for the Entity.
Organization identifier for the Project. If left empty, Default Organization is assumed
defaultVersion number of Project
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Returns updated Project details
PUT /gateway/ng/api/projects/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 165
{
"project": {
"orgIdentifier": "text",
"identifier": "text",
"name": "text",
"color": "text",
"modules": [
"CD"
],
"description": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Deletes a Project corresponding to the given ID.
Project Identifier for the Entity.
Account Identifier for the Entity.
This is the Organization Identifier for the Project. By default, the Default Organization's Identifier is considered.
defaultVersion number of Project
Bad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
It returns true if the Project is deleted successfully and false if the Project is not deleted
DELETE /gateway/ng/api/projects/{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"
}
]
}Account Identifier for the Entity.
List of Organization Identifiers for the Entities.
This boolean specifies whether to Filter Projects which has the Module of type passed in the module type parameter or to Filter Projects which does not has the Module of type passed in the module type parameter
trueThis is the list of Project Identifiers. Details specific to these IDs would be fetched.
Filter Projects by module type
Filter Projects by searching for this word in Name, Id, and Tag
falsePage Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
trueBad Request
This is Failure entity as defied in Harness
Not Found
Internal server error
Paginated list of Projects
GET /gateway/ng/api/projects/list?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"
}
]
}Last updated
Was this helpful?