Start a workflow via Bitrise API without trigger map

Can I start a workflow using the Bitrise API if that workflow isn’t defined in out trigger map? I was able to start our verify workflow fine until I removed this from our trigger map

- pull_request_target_branch: develop
  workflow: verify

Once I removed it, I started getting this error from the Bitrise API when calling /apps/{app-slug}/builds

trigger pattern did not match any defined mapping: no matching pipeline \u0026 workflow found with trigger params: push-branch: , pr-source-branch: CI/DF/add-github-actions-workflow, pr-target-branch: develop, tag: ","slug":"444f96b9af5c1aa6","service":"bitrise"

Hello @darren.findlay :wave:

The complete requirements for triggering a build via the API can be fund at Bitrise Swagger UI.

Here is an example:

{
  "build_params": {
    "base_repository_url": "string",
    "branch": "string",
    "branch_dest": "string",
    "branch_dest_repo_owner": "string",
    "branch_repo_owner": "string",
    "build_request_slug": "string",
    "commit_hash": "string",
    "commit_message": "string",
    "commit_paths": [
      {
        "added": [
          "string"
        ],
        "modified": [
          "string"
        ],
        "removed": [
          "string"
        ]
      }
    ],
    "diff_url": "string",
    "environments": [
      {
        "is_expand": true,
        "mapped_to": "string",
        "value": "string"
      }
    ],
    "head_repository_url": "string",
    "pipeline_id": "string",
    "pull_request_author": "string",
    "pull_request_head_branch": "string",
    "pull_request_id": "string",
    "pull_request_merge_branch": "string",
    "pull_request_repository_url": "string",
    "skip_git_status_report": true,
    "tag": "string",
    "workflow_id": "string"
  },
  "hook_info": {
    "type": "bitrise"
  }
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.