编辑
PUT
/notice/{id}
请求参数
Path 参数
id
integer
主键ID
示例值:
1
Header 参数
Authorization
string
可选
示例值:
Bearer {{pc_token}}
Accept-Language
string
可选
默认值:
en-US
Body 参数application/json
title
string
标题
noticeType
integer
类型
html
string
通知内容
userIds
array[string]
接收用户ID列表
示例
{
"title": "xxx",
"noticeType": 1,
"html": "mollit aliquip velit id in",
"userIds": [
"1698900184022351878"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://k28hrq.natappfree.cc/arbitrage/notice/1' \
--header 'Authorization: Bearer {{pc_token}}' \
--header 'Authorization;' \
--header 'Accept-Language: en-US' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "xxx",
"noticeType": 1,
"html": "mollit aliquip velit id in",
"userIds": [
"1698900184022351878"
]
}'
返回响应
🟢200成功
application/json
Body
data
null
必需
error
null
必需
示例
{
"data": null,
"error": null
}
修改于 2024-11-10 12:17:35