---
title: "Create Optimizer Template"
method: POST
path: "/v1/optimize/templates"
tags: ["Optimizer"]
---

# Create Optimizer Template

`POST /v1/optimize/templates`

## Request

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

Create a new Translation Service Template.

## Request body

- CreateTranslationTemplateRequestschema: Post new Translation Template model.
  - `name` string, required: Name of the new template.
  - `template` string, required: A stringified JSON template.
  - `protocolFilter` string[], required: Protocol filter that applies to this template.
  - `status` 'ACTIVE' | 'INACTIVE': The current status of the template.

## Response `201`

Created

- 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
- `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)
