Functions

List triggers on the branch

Changed on

Lists the complete project-bounded set of triggers visible on the branch, ordered by trigger_id. An inherited trigger keeps its project-wide ID and configuration, and is disabled on the child until explicitly enabled there.

The supported trigger types are schedule and storage_object_created. A storage-object-created trigger watches one exact bucket and fires only after an object upload succeeds.

Note: This endpoint is currently in Beta.

get/projects/{project_id}/branches/{branch_id}/triggers

Request

  • Base URL: https://console.neon.tech/api/v2
  • URL: https://console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/triggers
  • Auth: one of:
    • HTTP bearer
    • API key in cookie zenith
    • API key in cookie keycloak_token

Response

The branch-effective trigger list

Example response

{
  "triggers": [
    {
      "schedule": {
        "cron": "0 9 * * 1-5"
      }
    }
  ]
}

Changes

    • ▲

      added to the / response property oneOf list for the response status

    • ▲

      removed the required property ////// from the response with the status

    • ○

      added storage_object_created discriminator mapping keys to the / response property for the response status

    • ○

      endpoint added