---
title: "Switch theme"
method: POST
path: "/blogs/{blogId}/theme/switch"
tags: ["Themes"]
---

# Switch theme

`POST /blogs/{blogId}/theme/switch`

## Request

- Base URL: `https://api-docs.justblogged.com/api`
- URL: `https://api-docs.justblogged.com/api/blogs/{blogId}/theme/switch`
- Auth: HTTP bearer

Switch a blog to a different built-in theme or to custom.

## Path parameters

- `blogId` string, required

## Request body

- SwitchThemeRequest
  - `themeId` 'just' | 'obsidian' | 'linen' | 'tribune' | 'beacon' | 'aside' | 'changes' | 'custom', required

## Response `200`

Theme switched

- SwitchThemeResponse
  - `success` boolean, required
  - `message` string, required
  - `themeId` string

## Other responses

- `400`: Invalid request data
- `401`: Authentication required
- `403`: Insufficient permissions
- `404`: Resource not found
- `503`: Theme assets not available

---

[API](https://skmtc.dev/justblogged/apis/justblogged-api.md) · [All operations](https://skmtc.dev/justblogged/apis/justblogged-api/llms.txt) · [OpenAPI document](https://skmtc.dev/justblogged/apis/justblogged-api/revisions/7769318744ae?raw)
