Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
  • API reference
    • Public conventions
    • Development specification
    • accessToken: Get administrator token
    • API request example
    • Return codes
    • Interface call limits
    • Account docking
    • Device APIs
      • bindDevice: Bind Device
      • unBindDevice: Unbind Device
      • Batch detail by device ID
      • Paged device detail
      • Query online status
      • Pre-bind information
      • Bind state
      • subAccountDeviceInfo
      • subAccountDeviceList
      • setDeviceSnap: Device snapshot
      • setDeviceSnapEnhanced: Device snapshot
      • timeZoneConfigByDay: Set Device Time Zone Daylight Saving Time (by time)
      • timeZoneConfigByWeek: Setting device time zone daylight saving time (per week)
      • timeZoneQueryByDay: Query device time zone daylight saving time (by date)
      • timeZoneQueryByWeek: Obtain device time zone daylight saving time (by week)
    • Device live broadcast
    • Push configuration
    • Cloud storage service
    • Resource pool quota
    • Legacy APIs (deprecated)
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Function details
Request address
Request format
Incoming parameter description
Sample input
Return data field description
Sample output
Error codes
Related

unBindDevice (UnBindDevice - Unbind Device Development Documentation - Imou Open Platform)

unBindDevice: UnBindDevice - Unbind Device Development Documentation - Imou Open Platform

Function details

Unbind the specified device under the account.

Remarks:

  1. After the device is unbound, the alarm message will be deleted immediately

  2. Cloud video will not be deleted immediately, but automatically deleted after expiration

  3. The cloud storage package that has been activated when the device is unbound will automatically return to the developer account and can be inherited to other devices under the account

See Device query · Previous: bindDevice · Next: setDeviceSnap · Device add.

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/unBindDevice

Request format

HTTP POST. JSON body layout: Request conventions. Sign with Signature.

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
tokenStringYesAdministrator accessToken
deviceIdStringYesDevice serial number

Sample input

{
 "system":{
 "ver":"1.0",
 "appId":"lcdxxxxxxxxx",
 "sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
 "time":1603352767,
 "nonce":"bd596cc6-08a6-4b50-9359-f361640a84b2"
 },
 "id":"e865b28c-7681-43a6-8d20-27659f3ef572",
 "params":{
 "deviceId":"TESTQWERXXXX",
 "token":"At_00000ad9e6e87f0142eb92e207aec46a"
 }
}

Return data field description

No data returned

Sample output

{
 "result":{
 "msg":"The operation was successful.",
 "code":"0"
 },
 "id":"e865b28c-7681-43a6-8d20-27659f3ef572"
}

Error codes

This method may return the codes below. See Return codes and Capability errors for the full catalog.

Gateway and auth (SN / TK / OP)

CodeMeaningNext step
SN1001Signature errorCheck sign per Development specification
TK1002Token invalid or expiredRefresh accessToken
OP1002Missing required parameterAdd required fields
OP1003Invalid parameterMatch this page’s parameter table
OP1009Permission deniedCheck token and device bind/share grants
OP1013Total call limit exceededReduce call rate
OP1014Daily per-interface limit exceededSee Interface call limits
DV1007Device offlineWait until the device is online

See Return codes · OP/SN/TK for the full catalog.

Sub-accounts (SUB)

CodeMeaningNext step
SUB1001–SUB1002Sub-account lacks API permissionUpdate policy via addPolicy
SUB1005Sub-account token expiredRefresh subAccountToken
SUB1006No device grant for sub-accountCheck Resource and device serial
SUB1008Sub-account not bound to appCreate and bind the sub-account first

See Return codes · SUB.

Device binding (DV10xx)

CodeMeaningNext step
DV1001Bound to another accountUnbind or use another device
DV1002Device does not existVerify serial number
DV1003Already bound to current accountNo need to bind again
DV1005Verification code errorCheck device label code
DV1008Bind count limit exceededUnbind extra devices
DV1011Device not boundBind first
DV1029Device already boundDo not bind again

See Return codes · DV.

Related

  • Development specification
  • API conventions
  • Module index
bindDevice: Bind Device
Batch detail by device ID