halo
  1. PostV1alpha1Console
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
      GET
    • DraftPost
      POST
    • UpdateDraftPost
      PUT
    • deletePostContent
      DELETE
    • fetchPostContent
      GET
    • UpdatePostContent
      PUT
    • fetchPostHeadContent
      GET
    • PublishPost
      PUT
    • RecyclePost
      PUT
    • fetchPostReleaseContent
      GET
    • revertToSpecifiedSnapshotForPost
      PUT
    • listPostSnapshots
      GET
    • UnpublishPost
      PUT
  • ReplyV1alpha1Console
    • ListReplies
  • SinglePageV1alpha1Console
    • ListSinglePages
    • DraftSinglePage
    • UpdateDraftSinglePage
    • deleteSinglePageContent
    • fetchSinglePageContent
    • UpdateSinglePageContent
    • fetchSinglePageHeadContent
    • PublishSinglePage
    • fetchSinglePageReleaseContent
    • revertToSpecifiedSnapshotForSinglePage
    • listSinglePageSnapshots
  • SystemV1alpha1Console
    • getStats
  • TagV1alpha1Console
    • ListPostTags
  • ThemeV1alpha1Console
    • ListThemes
    • fetchActivatedTheme
    • InstallThemeFromUri
    • InstallTheme
    • activateTheme
    • InvalidateCache
    • fetchThemeJsonConfig
    • updateThemeJsonConfig
    • Reload
    • ResetThemeConfig
    • fetchThemeSetting
    • UpgradeTheme
    • UpgradeThemeFromUri
  • 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. PostV1alpha1Console

deletePostContent

DELETE
/apis/api.console.halo.run/v1alpha1/posts/{name}/content
Delete a content for post.

请求参数

Path 参数

Query 参数

Header 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'http://192.168.80.101:8090/apis/api.console.halo.run/v1alpha1/posts//content?snapshotName' \
--header 'Authorization: {{authorization}}'

返回响应

🟢200成功
*/*
default response
Body

示例
{
    "content": "string",
    "raw": "string",
    "rawType": "string",
    "snapshotName": "string"
}
修改于 2025-09-17 17:11:35
上一页
UpdateDraftPost
下一页
fetchPostContent
Built with