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

# Set Homepage

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

## 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}/homepage`
- Auth: API key in header `X-Agent-Key`

Set a published page as the site's front page (or revert to latest-posts
when post_id is omitted). Changes the live homepage; reversible. Requires
write opt-in.

## Path parameters

- `site_id` string, uuid, required

## Query parameters

- `email` string, nullable

## Request body

- SetHomepageBody
  - `post_id` integer, nullable

## 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)
