Request

Fetches a list of your favorite site templates

Security
Bearer
Query
environmentIdstring

The identifier of the environment

Example:environmentId=main
curl -i -X GET \
  'https://xmapps-api.sitecorecloud.io/api/v1/favorites/sitetemplates?environmentId=main' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success

Bodyapplication/json
Array [
idstring or null

The identifier of the site template. Example value: {5AAE1EEA-EA24-40BF-96F1-1F43DA82C77B}

Example:"{5AAE1EEA-EA24-40BF-96F1-1F43DA82C77B}"
namestring or null

The name of the site template. Example value: Basic

Example:"Basic"
enabledboolean

Whether the template is available for use in the SitecoreAI Create a site UI. Example value: True

Example:true
descriptionstring or null

The description of the site template. Example value: An example of a simple website with homepage, subpage, navigation, and footer.

Example:"An example of a simple website with homepage, subpage, navigation, and footer."
contentsArray of objects or null(StringStringKeyValuePair)

The summary of what pages, components, or integrations are included in the template.

createdBystring or null

The author of the site template. Example value: sitecore\L6kfw52Vf

Example:"sitecore\\L6kfw52Vf"
updatedOnstring, (date-time)

The date of the last update. Example value: 2019-08-24T14:15:22Z

Example:"2019-08-24T14:15:22Z"
thumbnailstring or null

The thumbnail of the site template. Example value: https://customer-tenant.sitecorecloud.io/-/media/Feature/JSS-Experience-Accelerator/Basic-Site/template-thumbnail.png?w=176

Example:"https://customer-tenant.sitecorecloud.io/-/media/Feature/JSS-Experience-Accelerator/Basic-Site/template-thumbnail.png?w=176"
imagestring or null

Large resolution screenshot of the site template. Example value: https://customer-tenant.sitecorecloud.io/-/media/Feature/JSS-Experience-Accelerator/Basic-Site/template-thumbnail.png

Example:"https://customer-tenant.sitecorecloud.io/-/media/Feature/JSS-Experience-Accelerator/Basic-Site/template-thumbnail.png"
metadataobject or null

The site template metadata.

Example:
{ "builtInTemplate": "true" }
]
Response
[ { "id": "{5AAE1EEA-EA24-40BF-96F1-1F43DA82C77B}", "name": "Basic", "enabled": true, "description": "An example of a simple website with homepage, subpage, navigation, and footer.", "contents": [ … ], "createdBy": "sitecore\\L6kfw52Vf", "updatedOn": "2019-08-24T14:15:22Z", "thumbnail": "https://customer-tenant.sitecorecloud.io/-/media/Feature/JSS-Experience-Accelerator/Basic-Site/template-thumbnail.png?w=176", "image": "https://customer-tenant.sitecorecloud.io/-/media/Feature/JSS-Experience-Accelerator/Basic-Site/template-thumbnail.png", "metadata": { … } } ]