halo
  1. NotificationV1alpha1Uc
halo
uc
  • all
  • console
  • extension
  • public
  • uc
  • NotifierV1alpha1Uc
    • FetchReceiverConfig
      GET
    • SaveReceiverConfig
      POST
  • NotificationV1alpha1Uc
    • ListUserNotificationPreferences
      GET
    • SaveUserNotificationPreferences
      POST
    • ListUserNotifications
      GET
    • MarkNotificationsAsRead
      PUT
    • DeleteSpecifiedNotification
      DELETE
    • MarkNotificationAsRead
      PUT
  • UserConnectionV1alpha1Uc
    • DisconnectMyConnection
      PUT
  • PostV1alpha1Uc
    • ListMyPosts
      GET
    • CreateMyPost
      POST
    • GetMyPost
      GET
    • UpdateMyPost
      PUT
    • GetMyPostDraft
      GET
    • UpdateMyPostDraft
      PUT
    • PublishMyPost
      PUT
    • RecycleMyPost
      DELETE
    • UnpublishMyPost
      PUT
  • SnapshotV1alpha1Uc
    • GetSnapshotForPost
      GET
  • UserPreferenceV1alpha1Uc
    • getMyPreference
      GET
    • updateMyPreference
      PUT
  • TwoFactorAuthV1alpha1Uc
    • GetTwoFactorAuthenticationSettings
      GET
    • DisableTwoFactor
      PUT
    • EnableTwoFactor
      PUT
    • ConfigurerTotp
      POST
    • DeleteTotp
      DELETE
    • GetTotpAuthLink
      GET
  • DeviceV1alpha1Uc
    • ListDevices
    • RevokeDevice
  • PersonalAccessTokenV1alpha1Uc
    • ObtainPats
    • GeneratePat
    • DeletePat
    • ObtainPat
    • RestorePat
    • RevokePat
  • AttachmentV1alpha1Uc
    • ListMyAttachments
    • CreateAttachmentForPost
    • UploadUcAttachment
    • ExternalTransferAttachment_1
  1. NotificationV1alpha1Uc

SaveUserNotificationPreferences

POST
/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences
Save notification preferences for the authenticated user.

请求参数

Path 参数

Header 参数

Body 参数application/json

示例
{
    "reasonTypeNotifiers": [
        {
            "notifiers": [
                "string"
            ],
            "reasonType": "string"
        }
    ]
}

请求示例代码

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.notification.halo.run/v1alpha1/userspaces//notification-preferences' \
--header 'Authorization: {{authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "reasonTypeNotifiers": [
        {
            "notifiers": [
                "string"
            ],
            "reasonType": "string"
        }
    ]
}'

返回响应

🟢200成功
*/*
default response
Body

示例
{
    "notifiers": [
        {
            "description": "string",
            "displayName": "string",
            "name": "string"
        }
    ],
    "reasonTypes": [
        {
            "description": "string",
            "displayName": "string",
            "name": "string",
            "uiPermissions": [
                "string"
            ]
        }
    ],
    "stateMatrix": [
        [
            true
        ]
    ]
}
修改于 2025-09-17 17:14:20
上一页
ListUserNotificationPreferences
下一页
ListUserNotifications
Built with