v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Site Templates

[Deprecated]: Create new site template

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

post/v1/sites/templates

Request body

namestring required

Name of the site template

site_idinteger required

Site ID to build the template from

notesstring

Notes about the site template

tagsstring[]

Tags which can be used identify templates

Example request

{
  "name": "WooCommerce with SEO Plugins",
  "site_id": 8675309,
  "notes": "Our traditional WooCommerce site with SEO including X and Y plugins on Z theme."
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "name": "WooCommerce with SEO Plugins",
    "template_id": "7ec25c75-b490-4365-bc55-7df7f1aa7c5e",
    "created_from": {
      "site_id": 8675309,
      "domain": "woocommerce-site-we-love.tld"
    },
    "config": {
      "wordpress": {
        "version": "6.4.1",
        "php_version": "8.2"
      }
    },
    "notes": "Our traditional WooCommerce site with SEO including X and Y plugins on Z theme.",
    "created_at": "2018-03-20T09:12:28Z",
    "updated_at": "2018-03-20T09:12:28Z"
  }
}