halo
  1. ThemeV1alpha1Console
halo
console
  • all
  • console
  • extension
  • public
  • uc
  • AttachmentV1alpha1Console
    • SearchAttachments
      GET
    • ExternalTransferAttachment
      POST
    • UploadAttachment
      POST
  • AuthProviderV1alpha1Console
    • listAuthProviders
      GET
    • disableAuthProvider
      PUT
    • enableAuthProvider
      PUT
  • CommentV1alpha1Console
    • ListComments
      GET
    • CreateComment
      POST
    • CreateReply
      POST
  • IndicesV1alpha1Console
    • RebuildAllIndices
      POST
  • NotifierV1alpha1Console
    • FetchSenderConfig
      GET
    • SaveSenderConfig
      POST
    • VerifyEmailSenderConfig
      POST
  • PluginV1alpha1Console
    • ListPlugins
    • fetchCssBundle
    • fetchJsBundle
    • InstallPluginFromUri
    • InstallPlugin
    • fetchPluginJsonConfig
    • updatePluginJsonConfig
    • ChangePluginRunningState
    • reloadPlugin
    • ResetPluginConfig
    • fetchPluginSetting
    • UpgradePlugin
    • UpgradePluginFromUri
  • PostV1alpha1Console
    • ListPosts
    • DraftPost
    • UpdateDraftPost
    • deletePostContent
    • fetchPostContent
    • UpdatePostContent
    • fetchPostHeadContent
    • PublishPost
    • RecyclePost
    • fetchPostReleaseContent
    • revertToSpecifiedSnapshotForPost
    • listPostSnapshots
    • UnpublishPost
  • ReplyV1alpha1Console
    • ListReplies
  • SinglePageV1alpha1Console
    • ListSinglePages
    • DraftSinglePage
    • UpdateDraftSinglePage
    • deleteSinglePageContent
    • fetchSinglePageContent
    • UpdateSinglePageContent
    • fetchSinglePageHeadContent
    • PublishSinglePage
    • fetchSinglePageReleaseContent
    • revertToSpecifiedSnapshotForSinglePage
    • listSinglePageSnapshots
  • SystemV1alpha1Console
    • getStats
  • TagV1alpha1Console
    • ListPostTags
  • ThemeV1alpha1Console
    • ListThemes
      GET
    • fetchActivatedTheme
      GET
    • InstallThemeFromUri
      POST
    • InstallTheme
      POST
    • activateTheme
      PUT
    • InvalidateCache
      PUT
    • fetchThemeJsonConfig
      GET
    • updateThemeJsonConfig
      PUT
    • Reload
      PUT
    • ResetThemeConfig
      PUT
    • fetchThemeSetting
      GET
    • UpgradeTheme
      POST
    • UpgradeThemeFromUri
      POST
  • UserV1alpha1Console
    • ListUsers
    • CreateUser
    • GetCurrentUserDetail
    • UpdateCurrentUser
    • ChangeOwnPassword
    • SendEmailVerificationCode
    • VerifyEmail
    • GetUserDetail
    • DeleteUserAvatar
    • UploadUserAvatar
    • ChangeAnyonePassword
    • GetPermissions
    • GrantPermission
    • DisableUser
    • EnableUser
  • SystemConfigV1alpha1Console
    • getSystemConfigByGroup
    • updateSystemConfigByGroup
  • MigrationV1alpha1Console
    • getBackupFiles
    • DownloadBackups
    • RestoreBackup
  • PolicyAlpha1Console
    • getPolicyConfigByGroup
    • updatePolicyConfigByGroup
  1. ThemeV1alpha1Console

InstallThemeFromUri

POST
/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri
Install a theme from uri.

请求参数

Header 参数

Body 参数application/json

示例
{
    "uri": "http://example.com"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.80.101:8090/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri' \
--header 'Authorization: {{authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uri": "http://example.com"
}'

返回响应

🟢200成功
*/*
default response
Body

示例
{
    "apiVersion": "string",
    "kind": "string",
    "metadata": {
        "annotations": {
            "property1": "string",
            "property2": "string"
        },
        "creationTimestamp": "2019-08-24T14:15:22Z",
        "deletionTimestamp": "2019-08-24T14:15:22Z",
        "finalizers": [
            "string"
        ],
        "generateName": "string",
        "labels": {
            "property1": "string",
            "property2": "string"
        },
        "name": "string",
        "version": 0
    },
    "spec": {
        "author": {
            "name": "string",
            "website": "string"
        },
        "configMapName": "string",
        "customTemplates": {
            "category": [
                {
                    "description": "string",
                    "file": "string",
                    "name": "string",
                    "screenshot": "string"
                }
            ],
            "page": [
                {
                    "description": "string",
                    "file": "string",
                    "name": "string",
                    "screenshot": "string"
                }
            ],
            "post": [
                {
                    "description": "string",
                    "file": "string",
                    "name": "string",
                    "screenshot": "string"
                }
            ]
        },
        "description": "string",
        "displayName": "string",
        "homepage": "string",
        "issues": "string",
        "license": [
            {
                "name": "string",
                "url": "string"
            }
        ],
        "logo": "string",
        "repo": "string",
        "requires": "string",
        "settingName": "string",
        "version": "string"
    },
    "status": {
        "conditions": [
            {
                "lastTransitionTime": "2019-08-24T14:15:22Z",
                "message": "string",
                "reason": "string",
                "status": "TRUE",
                "type": "string"
            }
        ],
        "location": "string",
        "phase": "READY"
    }
}
修改于 2025-09-17 17:11:35
上一页
fetchActivatedTheme
下一页
InstallTheme
Built with