For the complete documentation index, see llms.txt. This page is also available as Markdown.

Deploy WordPress theme

Deploy a WordPress theme from an already uploaded directory.

Deploy WordPress theme

post

Deploy a WordPress theme from an already uploaded directory.

This endpoint allows you to deploy a WordPress theme that has been uploaded to the website's directory. The theme can be optionally activated after deployment.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Body
slugstringRequired

Slug of the theme

Example: twentytwentyone
theme_pathstringRequired

Relative path to the theme directory from wp-content/themes

Example: twentytwentyone-new
is_activatedboolean · nullableOptional

Whether to activate the theme after deployment

Default: falseExample: false
Responses
200

Success response

application/json
messagestringOptionalExample: Request accepted
post/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy
POST /api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "slug": "twentytwentyone",
  "theme_path": "twentytwentyone-new",
  "is_activated": false
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?