Sparkle
  1. UserApplication 用户应用程序
Sparkle
  • API
    • BanHistory 封禁历史
      • 查询最近封禁记录
      • 复杂查询封禁记录
    • ClientDiscovery 客户端发现
      • 查询最近新客户端发现记录
      • 复杂查询客户端发现记录
    • Snapshot 快照记录
      • 查询最近快照
      • 复杂查询快照记录
    • UserApplication 用户应用程序
      • 列出我的用户应用程序
        GET
      • 获取指定用户应用程序信息
        GET
      • 重置指定用户应用程序的 AppSecret
        POST
      • 编辑指定用户应用程序
        PATCH
      • 创建新的用户应用程序
        PUT
      • 删除指定用户应用程序
        DELETE
    • User 用户
      • 用户个人基本信息
      • 读取指定用户个人基本信息
      • 登出会话
    • Github OAuth2 登录
      GET
  • BTN兼容客户端协议通讯
    • 能力
      • 提交 Peers
      • 提交 Bans
      • 请求云端规则
    • 请求 BTN 配置文件
      GET
  1. UserApplication 用户应用程序

编辑指定用户应用程序

开发中
PATCH
/api/userapp/{appId}

请求参数

Path 参数
appId
string 
必需
Body 参数application/json
comment
string 
备注
必需
示例
{
    "comment": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://btn-prod.ghostchu-services.top/api/userapp/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "comment": "string"
}'

返回响应

🟢200成功
application/json
Body
success
boolean 
必需
message
null 
必需
data
object 
必需
id
integer 
必需
appId
string 
必需
comment
string 
必需
createdAt
integer 
必需
user
object 
必需
示例
{"success":true,"message":null,"data":{"id":1,"appId":"7355608","comment":"oh yes!","createdAt":1723916762000,"user":{"id":1,"avatar":"https://avatars.githubusercontent.com/u/30802565?v=4","nickname":"Ghost_chu","registerAt":1723916701954,"lastSeenAt":1723974023732}}}
修改于 2024-08-18 09:52:34
上一页
重置指定用户应用程序的 AppSecret
下一页
创建新的用户应用程序
Built with