---
title: "Create custom template from existing template"
method: POST
path: "/api/sites/multiscreen/templates/fromtemplate"
tags: ["Templates"]
---

# Create custom template from existing template

`POST /api/sites/multiscreen/templates/fromtemplate`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/sites/multiscreen/templates/fromtemplate`
- Auth: HTTP basic

Creates a custom template from an existing template. The thumbnail is generated in the background, so `thumbnail_url` may point to a placeholder image at first.

## Request body

- CustomTemplateFromExistingTemplateRDT
  - `new_template_name` string
  - `template_alias` string
  - `template_id` integer

## Response `200`

OK

- SiteTemplateRDT
  - `base_site_name` string
  - `categories` string[]
  - `desktop_thumbnail_url` string
  - `editor` 'SIMPLE' | 'ADVANCED' | 'ADVANCED-2.0' | 'VIBE'
  - `mobile_thumbnail_url` string
  - `preview_url` string
  - `tablet_thumbnail_url` string
  - `template_alias` string
  - `template_id` integer
  - `template_name` string
  - `template_properties` TemplatePropertiesRDT
    - `ai_enabled` boolean
    - `can_build_from_url` boolean
    - `has_blog` boolean
    - `has_booking` boolean
    - `has_store` boolean
    - `page_count` integer
    - `populate_with_ai_enabled` boolean
    - `store_type` 'NATIVE' | 'THIRDPARTY'
    - `template_family_id` integer
    - `type` string
    - `visibility` string
  - `thumbnail_url` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `405`: Method Not Allowed
- `429`: Too many requests. The rate limit was exceeded.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
