---
title: "Set a page as the front page"
method: POST
path: "/v1/builder/websites/{website_id}/pages/front/set"
tags: ["Builder"]
---

# Set a page as the front page

`POST /v1/builder/websites/{website_id}/pages/front/set`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/builder/websites/{website_id}/pages/front/set`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/builder/websites/:website_id/pages/front/set/post.ts> (a function with typed inputs; its response is checked against the schema)

Set a specific page as the front page (homepage) for a website in the builder interface

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-key` string, required

## Request body

- SetFrontPageRequest
  - `page_id` integer, required: ID of the page to set as the front page

## Response `200`

Front page set successfully

- SetFrontPageResponse
  - `msg` string: Status message
  - `status` integer: HTTP status code
  - `data` object
    - `message` string: Success message

## Other responses

- `400`: Bad request
- `403`: Unauthorized access
- `429`: Too many requests
- `500`: Something went wrong

---

[API](https://skmtc.dev/10web/apis/10web-api-v1.md) - [All operations](https://skmtc.dev/10web/apis/10web-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/10web/apis/10web-api-v1/revisions/01afc9651dfc?raw)
