Report Pull Request
Request
POST
https://appsec.sourcecraft.tech/v1/ai/fix-runs/{runUuid}/pull-request
Path parameters
|
Name |
Description |
|
runUuid |
Type: string UUID of the fix run, as given to the agent with its task Example: `` |
Query parameters
|
Name |
Description |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: |
Body
application/json
{
"pullRequest": "42"
}
|
Name |
Description |
|
pullRequest |
Type: string Public number (or UUID) of the pull request the fix agent opened Pattern: Example: |
Responses
200 OK
OK
Body
application/json
{
"linkUuid": "example"
}
|
Name |
Description |
|
linkUuid |
Type: string UUID of the SOURCECRAFT_PR link on the defect group; matches Link.uuid in its links Example: |
400 Bad Request
Bad Request