---
title: "[Deprecated]: Create new site template"
method: POST
path: "/v1/sites/templates"
tags: ["Site Templates"]
---

# [Deprecated]: Create new site template

`POST /v1/sites/templates`

This route has been replaced by POST /site_templates which uses a background task. Do not use this route

## Request body

- CreateSiteTemplateRequest
  - `name` string, required — Name of the site template
  - `site_id` integer, required — Site ID to build the template from
  - `notes` string — Notes about the site template
  - `tags` string[] — Tags which can be used identify templates

## Response `200`

OK

- SiteTemplateResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` SiteTemplate
    - `name` string — Name of the site template
    - `template_id` string, uuid — Unique ID (UUID) of the site template
    - `created_from` object — properties showing what site the template was created from
      - `site_id` integer — Site ID the template was created based on. NOTE: This site cannot be larger than 4Gb
      - `domain` string — Domain the template was created based on
    - `config` WordPressMetadata — properties about the WordPress site
      - `wordpress` object — WordPress properties
        - `version` string — version of WordPress that the site was running
        - `php_version` string, nullable — version of PHP that the site was running
        - `plugins` WordPressPluginOrTheme[]
          - `name` string
          - `title` string
          - `version` string
          - `activated` boolean
        - `themes` WordPressPluginOrTheme[]
          - `name` string
          - `title` string
          - `version` string
          - `activated` boolean
    - `notes` string — Notes about the site template
    - `tags` string[] — Tags which can be used to filter / search site templates
    - `created_at` string, date-time — When the site template was created
    - `updated_at` string, date-time — When the site template was last updated

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

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