规则编辑
开发中
POST
/adminapi/setting.KeyRule/edit
请求参数
Query 参数
id
integer
可选
示例值:
1
Header 参数
token
string
可选
示例值:
{{adminToken}}
Body 参数application/json
id
integer
ID
type
integer
必需
channel
string
接口类型
rule
string
停用规则
prompt
string
停用提示
status
integer
必需
示例
{
"id": 1,
"type": 1,
"channel": "gpt3.5",
"rule": "The OpenAI account associated",
"prompt": "key关联账号已被停用",
"status": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/setting.KeyRule/edit?id=1' \
--header 'token: {{adminToken}}' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"type": 1,
"channel": "gpt3.5",
"rule": "The OpenAI account associated",
"prompt": "key关联账号已被停用",
"status": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{
"code": 1,
"show": 0,
"msg": "编辑成功",
"data": []
}
修改于 2023-11-27 09:24:30