---
title: "Install new WordPress themes to site"
method: POST
path: "/v1/sites/{id}/themes"
tags: ["Themes"]
---

# Install new WordPress themes to site

`POST /v1/sites/{id}/themes`

Endpoint that can be used to install one or more WordPress themes for given site.

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Request body

- InstallThemesRequest
  - `themes` string
  - `activate` boolean
  - `custom_url` string

## Response `200`

OK

- InstallThemesResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object[]
    - `name` string — Name of the Theme
    - `version` string — Version of the Theme to install
    - `activated` boolean — Whether the theme is activated as the current theme
    - `note` string — Note about the object

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/revisions/db0dcbbc5764/schema)
