> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/graphql-api/api-reference/mutations/patch-self-service-center-template-version.md).

# patchSelfServiceCenterTemplateVersion

Applies a unified diff and saves an unpublished Self Service Center V2 template version.

### Arguments

| Argument                                                                                                                                                                     | Description                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| input ([PatchSelfServiceCenterTemplateVersionInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/patch-self-service-center-template-version-input.md)!) | Parameters for PatchSelfServiceCenterTemplateVersion |

### PatchSelfServiceCenterTemplateVersionInput Arguments

| Argument                                                                                                  | Description                                                                                                  |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| templateFileName ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string.md)!) | The file name of the template to patch (e.g. dashboard.liquid).                                              |
| patch ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string.md)!)            | A unified diff patch to apply to the current template body.                                                  |
| title ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string.md))             | An optional human-readable title for the saved template version.                                             |
| expectedBaseVersion ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int.md)!)    | The latest saved template version number the patch was generated from. Use 0 when there is no saved version. |

### Return fields

#### errors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error.md)!]!)

#### selfServiceCenterTemplate ([SelfServiceCenterTemplate](https://developer.firmhouse.com/graphql-api/api-reference/objects/self-service-center-template.md))

#### selfServiceCenterTemplateVersion ([SelfServiceCenterTemplateVersion](https://developer.firmhouse.com/graphql-api/api-reference/objects/self-service-center-template-version.md))
