---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/sec-api-ref/Ai-Fix-Run-Rest-Api/v1aifix-runsrunUuidpull-request-post.md
  - https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Ai-Fix-Run-Rest-Api/v1aifix-runsrunUuidpull-request-post.md
  - href: https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Ai-Fix-Run-Rest-Api/v1aifix-runsrunUuidpull-request-post.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r21725674
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r21725674

<div class="openapi">

# Report Pull Request

<!-- markdownlint-disable-file -->

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-post);margin-bottom: 12px">

<div class="openapi__request">

POST {.openapi__method}
```text translate=no
https://appsec.sourcecraft.tech/v1/ai/fix-runs/{runUuid}/pull-request
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_runUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

UUID of the fix run, as given to the agent with its task

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_gitRepo_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**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:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} `0199140f-4343-7c06-a7e3-b835c305b629`
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "pullRequest": "42"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_pullRequest_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Public number (or UUID) of the pull request the fix agent opened

_Pattern:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} `42`
{.table-cell}
||
|#{.json-schema-properties}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "linkUuid": "example"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_linkUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

UUID of the SOURCECRAFT_PR link on the defect group; matches Link.uuid in its links

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Bad Request

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.