添加软件
POST
/myauth/web/addSoft
请求参数
Header 参数
token
string
必需
示例值:
be749fa789564fc98272974ca0ae8882
Body 参数application/json
name
string
软件名称
status
integer
软件状态
type
integer
软件模式
genKey
string
数据加密秘钥
genStatus
integer
数据加密
bindDeviceCode
integer
机器绑定
heartTime
integer
心跳有效时间
register
integer
注册开关
示例
{
"name": "测试",
"status": 1,
"type": 0,
"genKey": "asd",
"genStatus": 0,
"bindDeviceCode": 0,
"heartTime": 660,
"register": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/web/addSoft' \
--header 'token: be749fa789564fc98272974ca0ae8882' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "测试",
"status": 1,
"type": 0,
"genKey": "asd",
"genStatus": 0,
"bindDeviceCode": 0,
"heartTime": 660,
"register":1
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
null
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "添加成功",
"sign": "",
"result": null,
"timestamp": 1642325982891
}
🔴500错误
修改于 2022-02-18 12:12:01