Template Object


A template is a reusable starting point for creating new sites, based on an existing site.

Wix Studio partners create a template from one of their sites, then use that template to create new sites within their account. Each new site is a duplicate of the template's site. A partner can also publish a template, turning it into a public template that other Wix accounts can clone.

Properties
createdBystringRead-onlyformat GUID

ID of the user who created the template.


createdDatestringRead-onlyformat date-time

Date and time the template was created.


hiddenboolean

Whether the template is hidden from template galleries and pickers. A hidden template still exists and can be used to create sites, but doesn't appear in template lists. Default: false.


idstringRead-onlyformat GUID

Template ID.


lastEditedBystringRead-onlyformat GUID

ID of the user who last edited the template's site.


lastEditedDatestringRead-onlyformat date-time

Date and time the template's site was last edited.


namestringminLength 4maxLength 20

Template name.


platformstringRead-only

revisionstringRead-onlyformat int64

Revision number, which increments by 1 each time the template is updated. To prevent conflicting changes, the current revision must be passed when updating the template. Ignored when creating a template.


sitesSitesRead-only

Sites created from this template within the current account.


templateTypestring

updatedDatestringRead-onlyformat date-time

Date and time the template was updated.

Did this help?