This function fetches the list of available Sitejet templates.
uapi --output=jsonpretty \ --user=username \ Sitejet \ get_templates
{- "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
}
}