> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OutputApplyPatchCallItem - Go SDK

> OutputApplyPatchCallItem type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

A native `apply_patch_call` output item matching OpenAI's Responses API shape. Emitted when the client requested the `apply_patch` shorthand.

## Fields

| Field       | Type                                                                                                         | Required             | Description                                                                                                                       | Example                                                                                                                         |
| ----------- | ------------------------------------------------------------------------------------------------------------ | -------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `CallID`    | `string`                                                                                                     | :heavy\_check\_mark: | N/A                                                                                                                               |                                                                                                                                 |
| `ID`        | `string`                                                                                                     | :heavy\_check\_mark: | N/A                                                                                                                               |                                                                                                                                 |
| `Operation` | [components.ApplyPatchCallOperation](/client-sdks/go/api-reference/models/applypatchcalloperation)           | :heavy\_check\_mark: | The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it. | `{"diff": "@@ function main() {\n+  console.log(\"hi\");\n }`",<br />"path": "/src/main.ts",<br />"type": "update\_file"<br />} |
| `Status`    | [components.ApplyPatchCallStatus](/client-sdks/go/api-reference/models/applypatchcallstatus)                 | :heavy\_check\_mark: | Lifecycle state of an `apply_patch_call` output item.                                                                             | completed                                                                                                                       |
| `Type`      | [components.OutputApplyPatchCallItemType](/client-sdks/go/api-reference/models/outputapplypatchcallitemtype) | :heavy\_check\_mark: | N/A                                                                                                                               |                                                                                                                                 |
