---
title: "Create a template variant"
method: POST
path: "/templates/{templateId}/variants"
---

# Create a template variant

`POST /templates/{templateId}/variants`

## Path parameters

- `templateId` string, required

## Request body

- CreateVariant
  - `name` string
  - `document` object
  - `width` integer
  - `height` integer
  - `thumbnailUrl` string, uri
  - `sortOrder` integer

## Response `201`

Variant created

## Other responses

- `404` — Resource was not found
- `422` — Invalid variant request

---

[API](https://skmtc.net/duply/apis/duply-api.md) · [All operations](https://skmtc.net/duply/apis/duply-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/duply/duply-api/revisions/474b3757c7af/schema)
