Skip to content

Unbind Sub-Device from Gateway Using PK, DK

API Address:/v2/devicemgr/r1/openapi/product/gateway/unbind

Request Method:POST

Request Data Type:application/json

Response Data Type:*/*

API Description:Unbind the association between sub-device and gateway using sub-device PK and DK

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData TypeSchema
deviceKeyDevice deviceKeyquerytruestring
productKeyProduct productKeyquerytruestring

Response Status:

Status CodeDescriptionSchema
200OKActionResultOfobject
201Created
401Unauthorized
403Forbidden
404Not Found
50000Service exception
50005Parameter check error
50007The deviceID, productKey or deviceKey is empty
70000Hub service unavailable
70026The sub-device is not connected to the gateway device
70089You have limited permission to operate this project or product or device
91001Token does not exist
91004Token incorrect
91005Doesn't have permission

Response Parameters:

Parameter NameParameter DescriptionTypeSchema
codeReturn codeobject
dataObjectobject
exp1string
msgPrompt messageobject
pageNumCurrent page numberobject
pageSizeItems per pageobject
pagesTotal pagesobject
totalTotal countobject

Response Example:

javascript
{
	"code": {},
	"data": {},
	"exp1": "",
	"msg": {},
	"pageNum": {},
	"pageSize": {},
	"pages": {},
	"total": {}
}