停用设备
Request
ENDPOINT
/account/ACCOUNT_KEY/device/DEVICE_KEY/disableMÉTODO
DELETE路径参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
account_key | uuidv4 | 账户唯一标识键。 | 36 |
device_key | uuidv4 | 设备唯一标识键。 | 36 |
Response
STATUS
200Response Body: 设备已停用
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"device_status": "disabled",
"created_at": "2024-12-22T20:30:23.459Z"
}
Response Body 参数
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
device_key * | uuidv4 | UUID v4 格式的设备唯一标识键 | 36 |
device_status * | string | 设备状态 | device_status 枚举值 |
created_at * | string | ISO 格式的设备创建日期(UTC - "YYYY-MM-DDTHH:MM:SSZ") | 20 |
device_status 枚举值
| 枚举值 | 描述 |
|---|---|
| active | 设备处于活动状态,可用 |
| disabled | 设备已停用 |
| pending | 设备待审批 |
STATUS
4xxResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 代码status | QI 代码code | 标题title | 描述(英文)description | 描述(葡文)translation |
|---|---|---|---|---|
| 400 | QIT000001 | Bad Request | Schema Error | Erro de Schema |
| 404 | OBD000002 | Not Found | Bank account not found | Conta não encontrada |
| 400 | OBD000088 | Bad Request | Account blocked or closed can not perform this action | A conta bloqueada ou fechada não pode executar esta ação |
| 400 | OBD000089 | Bad Request | Hub account can not perform this action | A conta hub não pode executar esta ação |
| 404 | OBD000100 | Device not found | No device is associated with the provided device_key. | Nenhum dispositivo está associado à device_key fornecida. |