Device Confirm
各デバイスの認証ステータス(auth_status)を変更するためのAPIです。認証ステータスが「未認証」の場合、デバイスが接続に来てもサーバーは401 Unauthorizedを返します。
IDを指定して特定のデバイスの認証ステータスを「認証済み」にします。
PATCH https://api.legs.iij.jp/api/devices/{device_id}/confirm?token=api-token
Parameters
| type |
parameter |
require |
example |
description |
| path |
device_id |
yes |
02fcd662-5113-53d8-a118-747e81b99d03 |
デバイスID |
| query |
token |
yes |
api-token |
API Token |
Response Body 200
IDを指定して特定のデバイスの認証ステータスを「未認証」にします。
PATCH https://api.legs.iij.jp/api/devices/{device_id}/unconfirm?token=api-token
Parameters
| type |
parameter |
require |
example |
description |
| path |
device_id |
yes |
02fcd662-5113-53d8-a118-747e81b99d03 |
デバイスID |
| query |
token |
yes |
api-token |
API Token |
Response Body 200