Create a template from an install.
curl -X POST https://{SERVER_IP}/installs/1234567890abcdefghij12345/template \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '
{
"name": "Template Example"
}
'
{
"status": 200,
"result": true,
"message": "The task is complete.\n",
"data": {
"template_filename": "template_wordpress_My-example-template_2025-05-04_03-02-00",
"template_name": "My example template",
"template_desc": "My example WordPress blog template",
"template_scope": "admin",
"template_time": 1234567890,
"id": "1234567890abcdefghij12345",
"file": "/root/.appdata/templates/1234567890abcdefghij12345",
"agent": "5.0.0",
"application": "wordpress",
"autoup": "none",
"autoup_backup": "all",
"autoup_plugins": "custom",
"autoup_themes": "none",
"autobk": "schedule",
"autobk_schedule": "weeklymonthly",
"bkloc": "local",
"cache_archive": 12345678,
"cache_files": 12345678,
"cache_preview": 12345,
"cache_tables": 123456,
"files": [
".htaccess",
".maintenance",
"index.php",
"it-api.php",
"license.txt",
"liesmich.html",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"wp-mail.php",
"xmlrpc.php"
],
"notification": [
"backup",
"backup_error",
"clone",
"clone_error",
"install",
"install_error",
"plugin_update",
"plugin_update_available",
"plugin_update_error",
"restore",
"restore_error",
"sync",
"sync_error",
"template",
"template_error",
"update",
"update_available",
"update_error"
],
"path": "/home/useraccountname/public_html/blog",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1234567890,
"title": "My example blog",
"url": "https://website.com/blog",
"user": "useraccountname",
"version": "6.7.8",
"vhost": "https://website.com",
"email": "useraccountname@website.com",
"language": "en",
"login": "admin123",
"limitloginattempts": "yes",
"sitetitle": "My example blog",
"sitetagline": "Just another WordPress site",
"twofactor": "no"
}
}