Project Mappings
GetAppProjectMappingListByAgent retrieves Harness-Argo project mappings list by agent.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
GET /api/v1/agents/{agentIdentifier}/appprojectsmapping HTTP/1.1
Accept: */*
{
"appProjMap": {
"ANY_ADDITIONAL_PROPERTY": {
"projectIdentifier": "text",
"orgIdentifier": "text",
"autoCreateServiceEnv": true
}
}
}Create creates Harness-Argo project mappings.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
POST /api/v1/agents/{agentIdentifier}/appprojectsmapping HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 122
{
"appProjMap": {
"ANY_ADDITIONAL_PROPERTY": {
"projectIdentifier": "text",
"orgIdentifier": "text",
"autoCreateServiceEnv": true
}
}
}{}Update updates Harness-Argo project mappings.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
PUT /api/v1/agents/{agentIdentifier}/appprojectsmapping HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 122
{
"appProjMap": {
"ANY_ADDITIONAL_PROPERTY": {
"projectIdentifier": "text",
"orgIdentifier": "text",
"autoCreateServiceEnv": true
}
}
}{}Delete deletes Harness-Argo project mapping.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
DELETE /api/v1/agents/{agentIdentifier}/appprojectsmapping/{name} HTTP/1.1
Accept: */*
{}GetAppProjectMappingList retrieves Harness-Argo project mappings list.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
GET /api/v1/appprojectsmapping HTTP/1.1
Accept: */*
{
"appProjMap": {
"ANY_ADDITIONAL_PROPERTY": {
"projectIdentifier": "text",
"orgIdentifier": "text",
"autoCreateServiceEnv": true
}
}
}CreateV2 creates Harness-Argo project mappings.
Agent identifier for entity.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Enable automated creation of service,environment and cluster-env link. Defaults to false.
A successful response.
An unexpected error response.
POST /api/v2/agents/{agentIdentifier}/appprojectsmapping HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"agentIdentifier": "text",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"argoProjectName": "text",
"autoCreateServiceEnv": true
}{
"identifier": "text",
"ArgoProjectName": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"accountIdentifier": "text",
"agentIdentifier": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"autoCreateServiceEnv": true
}GetAppProjectMappingV2 retrieves Harness-Argo project mapping for the given identifier.
Agent identifier for entity.
app project mapping identifier.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Enable automated creation of service,environment and cluster-env link. Defaults to false.
A successful response.
An unexpected error response.
GET /api/v2/agents/{agentIdentifier}/appprojectsmapping/{identifier} HTTP/1.1
Accept: */*
{
"identifier": "text",
"ArgoProjectName": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"accountIdentifier": "text",
"agentIdentifier": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"autoCreateServiceEnv": true
}UpdateV2 updates Harness-Argo project mappings.
Agent identifier for entity.
app project mapping identifier.
app project mapping identifier.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Enable automated creation of service,environment and cluster-env link. Defaults to false.
A successful response.
An unexpected error response.
PUT /api/v2/agents/{agentIdentifier}/appprojectsmapping/{identifier} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 176
{
"identifier": "text",
"agentIdentifier": "text",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"argoProjectName": "text",
"autoCreateServiceEnv": true
}{
"identifier": "text",
"ArgoProjectName": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"accountIdentifier": "text",
"agentIdentifier": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"autoCreateServiceEnv": true
}DeleteV2 deletes Harness-Argo project mappings.
Agent identifier for entity.
app project mapping identifier.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Argo Project name for the Entity.
When true, validates that no Applications, Clusters, Repositories, or ApplicationSets still reference this Argo project before deleting, returning a 409 if any do. Defaults to false, which preserves the legacy behavior of cascade-deleting all referenced resources unconditionally.
A successful response.
An unexpected error response.
DELETE /api/v2/agents/{agentIdentifier}/appprojectsmapping/{identifier} HTTP/1.1
Accept: */*
{}GetAppProjectMappingsListByAgentV2 retrieves Harness-Argo project mappings list by agent.
Agent identifier for entity.
app project mapping identifier.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Enable automated creation of service,environment and cluster-env link. Defaults to false.
A successful response.
An unexpected error response.
GET /api/v2/agents/{agentIdentifier}/appprojectsmappings HTTP/1.1
Accept: */*
{
"appProjectMappings": [
{
"identifier": "text",
"ArgoProjectName": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"accountIdentifier": "text",
"agentIdentifier": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"autoCreateServiceEnv": true
}
]
}ListAppProjectMappings retrieves Harness-Argo project mappings list with pagination and search.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
An unexpected error response.
GET /api/v2/appprojectsmapping HTTP/1.1
Accept: */*
{
"content": [
{
"accountIdentifier": "text",
"projectIdentifier": "text",
"orgIdentifier": "text",
"name": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"agentIdentifier": "text",
"autoCreateServiceEnv": true,
"uuid": "text",
"subId": "text",
"agentUuid": "text"
}
],
"totalPages": 1,
"totalItems": 1,
"pageItemCount": 1,
"pageSize": 1,
"pageIndex": 1,
"empty": true
}Last updated
Was this helpful?