Agent

Create a pull request directly

Create a pull request directly via the VCS provider (GitHub, GitLab, or Bitbucket). Use this for ad-hoc PRs not tied to a specific vulnerability patch. The branch must already exist on the remote.

post/api/v2/agent/createPullRequest

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Organization ID (injected by MCP server)

repositoryIdstring uuid required

ID of the repository to create a PR in

branchNamestring required

Source branch name for the pull request

baseBranchstring required

Target/base branch for the pull request

titlestring required

Pull request title

bodystring required

Pull request body/description

Response

Pull request created

prUrlstring required

Web URL of the created pull request

Changes

No recorded changes to this operation across all 1 revision of this API.