Edit this page on GitHub

Home > docs > api > Trigger

Trigger

Triggers start processes in reaction to external events.

The REST API provides support for a number of operations:

List Triggers

Returns a list of triggers registered for the specified project’s repository.

  • URI /api/v1/org/${orgName}/project/${projectName}/repository/${repoName}/trigger
  • Method GET
  • Headers Authorization
  • Body none
  • Success response
      Content-Type: application/json
    
      [
        {
          "id": "...",
          "conditions": {
            ...
          }        
        }
      ]
    

Refresh Triggers

Reloads the trigger definitions for the specified project’s repository.

  • URI /api/v1/org/${orgName}/project/${projectName}/repository/${repoName}/trigger
  • Method POST
  • Headers Authorization
  • Body none
  • Success response none