- BIT101 API总览
- 用户模块
- 上传模块
- 交互反馈模块
- 文章模块
- 教务模块
- 课程模块
- 变量模块
- 消息模块
- 话廊模块
- 治理模块
- 学校教务接口
- 订阅模块
更新帖子
开发中
PUT
/posters/{id}
请求参数
Path 参数
id
integer
必需
示例值:
1
Header 参数
fake-cookie
string
可选
示例值:
{{fake_cookie}}
Body 参数application/json
title
string
标题
text
string
内容
image_mids
array[string]
图片
plugins
string
插件
anonymous
boolean
匿名
tags
array[string]
标签
claim_id
integer
声明编号
public
boolean
公开
示例
{
"title": "第切验段",
"text": "anim est",
"mids": [
"35",
"86",
"12",
"26"
],
"anonymous": false,
"tags": [
"eiusmod",
"tempor et Lorem sunt sed",
"dolore"
],
"claim_id": 2,
"public": true,
"plugins": "dolor"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://bit101.flwfdd.xyz/posters/1' \
--header 'fake-cookie: {{fake_cookie}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "第切验段",
"text": "anim est",
"mids": [
"35",
"86",
"12",
"26"
],
"anonymous": false,
"tags": [
"eiusmod",
"tempor et Lorem sunt sed",
"dolore"
],
"claim_id": 2,
"public": true,
"plugins": "dolor"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
🟠404记录不存在
🟠400参数不正确
🔴500服务器错误
🟠401身份验证失败