---
title: "Set Theme"
method: POST
path: "/wordpress/sites/{site_id}/theme"
tags: ["wordpress"]
---

# Set Theme

`POST /wordpress/sites/{site_id}/theme`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/wordpress/sites/{site_id}/theme`
- Auth: API key in header `X-Agent-Key`

Activate a theme (e.g. hello-elementor) via Xyle's server-side SSH. Changes
the live site's theme; reversible by activating the previous one. Write-gated.

## Path parameters

- `site_id` string, uuid, required

## Query parameters

- `email` string, nullable

## Request body

- SetThemeBody
  - `theme` string, required
  - `install` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
