Return Sitejet templates

This function fetches the list of available Sitejet templates.

SecurityBasicAuth
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/get_templates
Request samples
uapi --output=jsonpretty \
  --user=username \
  Sitejet \
  get_templates
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_templates",
  • "module": "Sitejet",
  • "result": {
    • "data": [
      • {
        • "createdAt": "2023-05-04T07:21:20.000Z",
        • "description": "Example template description",
        • "id": "123456",
        • "image": "/images/1024/6824140/template_image.png",
        • "name": "example template",
        • "tags": [
          • "blog"
          ]
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}