---
title: "从在线目录安装主题包"
method: POST
path: "/theme-packs/catalog/install"
tags: ["主题包"]
---

# 从在线目录安装主题包

`POST /theme-packs/catalog/install`

下载远程主题包 JSON，验证 SHA-256 后导入

## Request body

- object

## Response `200`

安装成功

- ServicesThemePackResponse
  - `author` string
  - `created_at` string
  - `data` ModelsThemePackData
    - `author` string
    - `cardRadius` number
    - `controlRadius` number
    - `dark` ModelsThemePackColors
      - `backgroundColor` string
      - `seedColor` string
      - `surfaceColor` string
    - `description` string
    - `id` string
    - `light` ModelsThemePackColors
      - `backgroundColor` string
      - `seedColor` string
      - `surfaceColor` string
    - `name` string
    - `navigationRadius` number
    - `playerGradient` string[]
    - `schemaVersion` integer
    - `version` string
  - `description` string
  - `id` integer
  - `name` string
  - `schema_version` integer
  - `theme_id` string
  - `updated_at` string
  - `version` string

## Other responses

- `400` — 校验失败

---

[API](https://skmtc.net/songloft-org/apis/songloft-api.md) · [All operations](https://skmtc.net/songloft-org/apis/songloft-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/songloft-org/songloft-api/versions/77467de6ed1b/schema)
