---
title: "Generate and upload a sitemap for a website"
method: POST
path: "/api/sitemap/generate"
tags: ["Sitemap - Admin"]
---

# Generate and upload a sitemap for a website

`POST /api/sitemap/generate`

Generates and uploads the sitemap for a given website ID.
Only available to authenticated users.

## Headers

- `x-api-token` string, nullable

## Request body

- SitemapRequest
  - `website_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
