Update Sitejet template

This function sets a Sitejet website's template.

SecurityBasicAuth
Request
query Parameters
domain
required
string

A cPanel account's domain.

Example: domain=example.com
templateId
required
string

The Sitejet template's ID.

Example: templateId=12345
templateName
required
string

The Sitejet template name.

Example: templateName=A great template
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Sitejet/set_template
Request samples
uapi --output=jsonpretty \
  --user=username \
  Sitejet \
  set_template \
  domain='example.com' \
  templateId='12345'
  templateName='A great template'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "set_template",
  • "module": "Sitejet",
  • "result": {
    • "data": { },
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}