# Create or update a transcoding template (/en/api-reference/api-ref/cloud-transcoding/template-create)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Creates or updates a transcoding template.

- OpenAPI: /openapi/cloud-transcoding/cloud-transcoding.en.yaml
- Operation ID: create-or-update-transcoding-template
- Method: POST
- Path: /v1/projects/{appId}/rtls/abr/config/codecs/{codecId}

## Servers

- https://api.sd-rtn.com

## Parameters

- `Content-Type` (header, required) - The request content type. Use `application/json`.
- `appId` (path, required) - The App ID of the project
- `codecId` (path, required) - The ID of the transcoding template.

## Request body

- `enabled` (boolean, required) - Whether to enable this transcoding template:
- `true`: Enable the template
- `false`: Do not enable the template
No schema.
- `video` (object, required)
  - `video.width` (number, required) - **Maximum value**: `1920`

 The width of the transcoded output video (px).
No schema.
  - `video.height` (number, required) - **Maximum value**: `1920`

 The height of the transcoded output video (px).
No schema.
  - `video.fps` (number, required) - **Maximum value**: `60`

 The frame rate (fps) of the transcoded output video.
No schema.

## Responses

### 200

The request succeeded.

- `status` (string) - The status of the request.

Status of this request:

 - success: The request was successful.
 - error: The request failed.
No schema.
### default

The request failed.

- `message` (string) - Describes why the request failed.
No schema.
- `status` (string) - The status of the request.

Status of this request:

 - success: The request was successful.
 - error: The request failed.
No schema.
