更新设备解禁证书开关状态
POST
/openapi/v0.9/manage/api/v1/organizations/{org_uuid}/manage-devices/unlock-license/switch
es-management-service
请求参数
Path 参数
org_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
device_cmd_data
object
可选
required: true
device_sn
string
可选
required: true
example: 1581F8HHD24B10010084
enable
boolean
可选
required: true
example: true
license_id
integer
可选
required: true
example: 1
device_cmd_method
string
可选
required: true
example: unlock_license_switch
device_sn
string
可选
required: true
example: 1581F8HHD24B10010084
示例
{
"device_cmd_data": {
"device_sn": "string",
"enable": true,
"license_id": 0
},
"device_cmd_method": "string",
"device_sn": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.9/manage/api/v1/organizations//manage-devices/unlock-license/switch' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"device_cmd_data": {
"device_sn": "string",
"enable": true,
"license_id": 0
},
"device_cmd_method": "string",
"device_sn": "string"
}'
返回响应
🟢200成功
application/json
Body
allOf {2}
可选
object (Resp) | null
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object | null
响应数据
object
可选
data
string
可选
示例
{
"code": 0,
"message": "string",
"data": "string"
}
修改于 2025-06-27 08:03:50