Create Run Pull Request
Durably requests creation of a pull request for a completed run. The server generates the pull request content and creates the GitHub pull request after this request returns. Poll the URL in the Location response header until the creation succeeds or fails.
If a creation is already pending for the run, the response returns that creation unchanged; any different model or force values in the new request are ignored.
Path parameters
Unique run identifier (ULID).
Request body
Example request
{
"model": "claude-sonnet-4-6"
}Response
Pull request creation was durably accepted
Example response
{
"id": "01KYYK70WTZT2E551P3H5P0059",
"pull_request": {
"owner": "fabro-sh",
"repo": "fabro",
"number": 123,
"html_url": "https://github.com/fabro-sh/fabro/pull/123"
}
}Changes
Changed in 2 of the 172 revisions of this API.16
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 12 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed the success response with the status
response-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
added the success response with the status
response-success-status-added
- ▲