Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Project Mappings

Get Harness-Argo project mapping by agent

get

GetAppProjectMappingListByAgent retrieves Harness-Argo project mappings list by agent.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

A successful response.

application/json
get/api/v1/agents/{agentIdentifier}/appprojectsmapping
GET /api/v1/agents/{agentIdentifier}/appprojectsmapping HTTP/1.1
Accept: */*
{
  "appProjMap": {
    "ANY_ADDITIONAL_PROPERTY": {
      "projectIdentifier": "text",
      "orgIdentifier": "text",
      "autoCreateServiceEnv": true
    }
  }
}

Create Harness-Argo project mapping

post

Create creates Harness-Argo project mappings.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
Responses
200

A successful response.

application/json
object · v1EmptyOptional
post/api/v1/agents/{agentIdentifier}/appprojectsmapping
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 Harness-Argo project mapping

put

Update updates Harness-Argo project mappings.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
Responses
200

A successful response.

application/json
object · v1EmptyOptional
put/api/v1/agents/{agentIdentifier}/appprojectsmapping
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 Harness-Arog project mapping

delete

Delete deletes Harness-Argo project mapping.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

namestringRequired
Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

A successful response.

application/json
object · v1EmptyOptional
delete/api/v1/agents/{agentIdentifier}/appprojectsmapping/{name}
DELETE /api/v1/agents/{agentIdentifier}/appprojectsmapping/{name} HTTP/1.1
Accept: */*
{}

Get Harness-Argo project mappings

get

GetAppProjectMappingList retrieves Harness-Argo project mappings list.

Query parameters
agentIdentifierstringOptional

Agent identifier for entity.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

A successful response.

application/json
get/api/v1/appprojectsmapping
GET /api/v1/appprojectsmapping HTTP/1.1
Accept: */*
{
  "appProjMap": {
    "ANY_ADDITIONAL_PROPERTY": {
      "projectIdentifier": "text",
      "orgIdentifier": "text",
      "autoCreateServiceEnv": true
    }
  }
}

Create Harness-Argo project mapping V2

post

CreateV2 creates Harness-Argo project mappings.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Body
agentIdentifierstringOptional

Agent identifier for entity.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

argoProjectNamestringOptional
autoCreateServiceEnvbooleanOptional

Enable automated creation of service,environment and cluster-env link. Defaults to false.

Responses
200

A successful response.

application/json
identifierstringOptional
ArgoProjectNamestringOptional
projectIdentifierstringOptional
orgIdentifierstringOptional
accountIdentifierstringOptional
agentIdentifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
autoCreateServiceEnvbooleanOptional
post/api/v2/agents/{agentIdentifier}/appprojectsmapping
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
}

Get Harness-Argo project mapping V2

get

GetAppProjectMappingV2 retrieves Harness-Argo project mapping for the given identifier.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

identifierstringRequired

app project mapping identifier.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

argoProjectNamestringOptional
autoCreateServiceEnvbooleanOptional

Enable automated creation of service,environment and cluster-env link. Defaults to false.

Responses
200

A successful response.

application/json
identifierstringOptional
ArgoProjectNamestringOptional
projectIdentifierstringOptional
orgIdentifierstringOptional
accountIdentifierstringOptional
agentIdentifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
autoCreateServiceEnvbooleanOptional
get/api/v2/agents/{agentIdentifier}/appprojectsmapping/{identifier}
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
}

Update Harness-Argo project mappings V2

put

UpdateV2 updates Harness-Argo project mappings.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

identifierstringRequired

app project mapping identifier.

Body
identifierstringOptional

app project mapping identifier.

agentIdentifierstringOptional

Agent identifier for entity.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

argoProjectNamestringOptional
autoCreateServiceEnvbooleanOptional

Enable automated creation of service,environment and cluster-env link. Defaults to false.

Responses
200

A successful response.

application/json
identifierstringOptional
ArgoProjectNamestringOptional
projectIdentifierstringOptional
orgIdentifierstringOptional
accountIdentifierstringOptional
agentIdentifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
autoCreateServiceEnvbooleanOptional
put/api/v2/agents/{agentIdentifier}/appprojectsmapping/{identifier}
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
}

Delete Harness-Argo project mapping

delete

DeleteV2 deletes Harness-Argo project mappings.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

identifierstringRequired

app project mapping identifier.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

argoProjectNamestringOptional

Argo Project name for the Entity.

blockIfReferencedbooleanOptional

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.

Responses
200

A successful response.

application/json
object · v1EmptyOptional
delete/api/v2/agents/{agentIdentifier}/appprojectsmapping/{identifier}
DELETE /api/v2/agents/{agentIdentifier}/appprojectsmapping/{identifier} HTTP/1.1
Accept: */*
{}

Get Harness-Argo project mapping list by agent V2

get

GetAppProjectMappingsListByAgentV2 retrieves Harness-Argo project mappings list by agent.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
identifierstringOptional

app project mapping identifier.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

argoProjectNamestringOptional
autoCreateServiceEnvbooleanOptional

Enable automated creation of service,environment and cluster-env link. Defaults to false.

Responses
200

A successful response.

application/json
get/api/v2/agents/{agentIdentifier}/appprojectsmappings
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
    }
  ]
}

Get Harness-Argo project mappings with pagination and search

get

ListAppProjectMappings retrieves Harness-Argo project mappings list with pagination and search.

Query parameters
agentIdentifierstringOptional

Agent identifier for entity.

accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

searchTermstringOptional
pageSizeinteger · int32Optional
pageIndexinteger · int32Optional
Responses
200

A successful response.

application/json
totalPagesinteger · int32Optional
totalItemsinteger · int32Optional
pageItemCountinteger · int32Optional
pageSizeinteger · int32Optional
pageIndexinteger · int32Optional
emptybooleanOptional
get/api/v2/appprojectsmapping
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?