添加配置-火山
POST
/api/saveConfig
最后修改时间:2024-07-25 02:49:35
请求参数
Body 参数application/json
platform
string
必需
status
boolean
必需
level
integer
必需
cfg
object
必需
accessKey
string
必需
secretKey
string
必需
type
string
必需
示例
{
"platform": "HuoShan1",
"status": true,
"level": 1,
"cfg": {
"accessKey": "",
"secretKey": ""
},
"type": "HuoShan"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/saveConfig' \
--header 'Content-Type: application/json' \
--data-raw '{
"platform": "HuoShan1",
"status": true,
"level": 1,
"cfg": {
"accessKey": "",
"secretKey": ""
},
"type": "HuoShan"
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
data
array[string]
返回的数据
msg
string
系统信息
time
integer
当前系统时间
示例
{
"code": 1000,
"data": [],
"msg": "SUCCESS !!!",
"time": 1715393900901
}
修改于 2024-07-25 02:49:35