---
title: "Update Optimizer Template"
method: PATCH
path: "/v1/optimize/templates/{templateId}"
tags: ["Optimizer"]
---

# Update Optimizer Template

`PATCH /v1/optimize/templates/{templateId}`

## Request

- Base URL: `https://api.1nce.com/management-api`
- URL: `https://api.1nce.com/management-api/v1/optimize/templates/{templateId}`
- Auth: HTTP bearer

Update a specific Optimizer Template.

## Path parameters

- `templateId` string, required

## Request body

- union: Update a Translation Template.
  - object
    - `name` string, required: New name of the template.
    - `template` string: A new stringified JSON template.
    - `protocolFilter` string[]: Protocol filter that applies to this template.
    - `status` 'ACTIVE' | 'INACTIVE': The current status of the template.
  - object
    - `name` string: New name of the template.
    - `template` string, required: A new stringified JSON template.
    - `protocolFilter` string[]: Protocol filter that applies to this template.
    - `status` 'ACTIVE' | 'INACTIVE': The current status of the template.
  - object
    - `name` string: New name of the template.
    - `template` string: A new stringified JSON template.
    - `protocolFilter` string[], required: Protocol filter that applies to this template.
    - `status` 'ACTIVE' | 'INACTIVE': The current status of the template.
  - object
    - `name` string: New name of the template.
    - `template` string: A new stringified JSON template.
    - `protocolFilter` string[]: Protocol filter that applies to this template.
    - `status` 'ACTIVE' | 'INACTIVE', required: The current status of the template.

## Response `200`

OK

- PostPatchTranslationTemplatesResponseschema: Response to the post or the patch Translation Template request.
  - `name` string, required: Name of the specific template.
  - `template` string, required: A stringified JSON template.
  - `status` 'ACTIVE' | 'INACTIVE', required: The current status of the template.
  - `id` string, required: The unique ID of the template.
  - `protocolFilter` string[], required: Protocol filter that applies to this template. Only the listed protocols will be processed by the template.

## Other responses

- `403`: Forbidden
- `404`: Not Found Error
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/1nce/apis/1nce-os.md) - [All operations](https://skmtc.dev/1nce/apis/1nce-os/llms.txt) - [OpenAPI document](https://skmtc.dev/1nce/apis/1nce-os/revisions/f1aabbc6aeea?raw)
