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

Triggers

This contains APIs related to Triggers.

Gets the paginated list of triggers for accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier.

get
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline

filterstringOptional
pageinteger · int32OptionalDefault: 0
sizeinteger · int32OptionalDefault: 25
sortstring[]Optional
searchTermstringOptional
Body

This contains details of the Trigger Filter

triggerNamesstring[]Optional

This is the list of the Trigger names on which the filter will be applied.

triggerIdentifiersstring[]Optional

This is the list of the Trigger identifiers on which the filter will be applied.

filterTypestring · enumRequired

This specifies the corresponding Entity of the filter.

Possible values:
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/triggers
GET /gateway/pipeline/api/triggers?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 149

{
  "triggerNames": [
    "text"
  ],
  "triggerIdentifiers": [
    "text"
  ],
  "triggerTypes": [
    "Webhook"
  ],
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "filterType": "Connector"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Creates Trigger for triggering target pipeline identifier.

post
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline

ignoreErrorbooleanOptionalDefault: false
withServiceV2booleanOptionalDefault: true
Body
stringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/triggers
POST /gateway/pipeline/api/triggers?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 78

"trigger:\n  name: mytrigger\n  identifier: mytrigger\n  enabled: true\n  ..."
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Creates Trigger with executor identity in request body (v2 API).

post
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline

ignoreErrorbooleanOptionalDefault: false
withServiceV2booleanOptionalDefault: true
Body

Trigger YAML and optional executor identity for create/update

yamlstringRequired

Trigger definition YAML

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/triggers/v2
POST /gateway/pipeline/api/triggers/v2?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 62

{
  "yaml": "...",
  "executorInfo": {
    "uuid": "user-id",
    "type": "USER"
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Gets the trigger by accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier and triggerIdentifier.

get
Path parameters
triggerIdentifierstringRequired
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline under which trigger resides

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/triggers/{triggerIdentifier}
GET /gateway/pipeline/api/triggers/{triggerIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Updates trigger for pipeline with target pipeline identifier.

put
Path parameters
triggerIdentifierstringRequired
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline under which trigger resides

ignoreErrorbooleanOptionalDefault: false
Header parameters
If-MatchstringOptional
Body
stringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/triggers/{triggerIdentifier}
PUT /gateway/pipeline/api/triggers/{triggerIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 78

"trigger:\n  name: mytrigger\n  identifier: mytrigger\n  enabled: true\n  ..."
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Deletes Trigger by identifier.

delete
Path parameters
triggerIdentifierstringRequired
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline under which trigger resides.

Header parameters
If-MatchstringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/triggers/{triggerIdentifier}
DELETE /gateway/pipeline/api/triggers/{triggerIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Lists all Triggers

get

Lists all the Triggers for the given Account ID.

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/triggers/catalog
GET /gateway/pipeline/api/triggers/catalog?accountIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Fetches Trigger details for a specific accountIdentifier, orgIdentifier, projectIdentifier, targetIdentifier, triggerIdentifier.

get
Path parameters
triggerIdentifierstringRequired

Identifier of the target pipeline

Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/triggers/{triggerIdentifier}/details
GET /gateway/pipeline/api/triggers/{triggerIdentifier}/details?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
Deprecated

Get event history for a trigger

get

Get event history for a trigger

Path parameters
triggerIdentifierstringRequired
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline under which trigger resides

searchTermstringOptional

Search term to filter out pipelines based on pipeline name, identifier, tags.

pageinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
sizeinteger · int32Optional

Results per page

Default: 10
sortstring[]Optional

Sort criteria for the elements.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/triggers/{triggerIdentifier}/eventHistory
GET /gateway/pipeline/api/triggers/{triggerIdentifier}/eventHistory?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Updates trigger with executor identity in request body (v2 API).

put
Path parameters
triggerIdentifierstringRequired
Query parameters
accountIdentifierstringRequired
orgIdentifierstringRequired
projectIdentifierstringRequired
targetIdentifierstringRequired

Identifier of the target pipeline under which trigger resides

ignoreErrorbooleanOptionalDefault: false
Header parameters
If-MatchstringOptional
Body

Trigger YAML and optional executor identity for create/update

yamlstringRequired

Trigger definition YAML

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/triggers/{triggerIdentifier}/v2
PUT /gateway/pipeline/api/triggers/{triggerIdentifier}/v2?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&targetIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 62

{
  "yaml": "...",
  "executorInfo": {
    "uuid": "user-id",
    "type": "USER"
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?