Agent

Modify an open pull/merge request branch

Queue the same PR/MR branch modification worker used by the PR scan bot. The API validates repository scope, requires PATCH_ISSUE on the repository, posts a progress comment on the pull/merge request, and edits that comment with the result when the worker finishes. Use this when the assistant must apply concrete code changes to an existing branch.

post/api/v2/agent/modifyPullRequestBranch

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

ZeroPath repository ID for the GitHub pull request or GitLab merge request

prUrlstring required

GitHub pull request or GitLab merge request URL whose source branch should be modified

requeststring required

Concrete code change request to apply to the pull request branch

Response

Branch modification queued

status'queued' required

The branch modification job was queued

jobIdstring uuid required

Deferred PR bot job ID

ackCommentIdstring required

VCS comment/note ID for the progress comment that will be edited with results

prUrlstring required

Pull request URL being modified

headBranchstring required

PR source branch accepted before the mutation worker runs

headShastring required

PR source branch SHA accepted before the mutation worker runs

messagestring required

Changes

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