Skip to content

Query Latest Product Thing Model (JSON Format)

API Address:/v2/quectsl/openapi/product/export/tslFile

Request Method:GET

Request Data Type:application/x-www-form-urlencoded

Response Data Type:*/*

API Description:Get thing model data (JSON format)

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData TypeSchema
languageLanguage: CN/EN (default: CN)queryfalse
productIdProduct ID, corresponds one-to-one with productKey, serves as unique primary key. If this parameter is provided, productKey is not needed. If both productId and productKey are provided, productId takes precedencequeryfalseinteger(int64)
productKeyProduct Key, corresponds one-to-one with productId, serves as unique primary key. If this parameter is provided, productId is not needed. If both productId and productKey are provided, productId takes precedencequeryfalsestring

Response Status:

Status CodeDescriptionSchema
200OKActionResult
401Unauthorized
403Forbidden
404Not Found
50000Service exception
50005Parameter check error
50006The productID or productKey is empty
50007The deviceID, productKey or deviceKey is empty
70000Hub service unavailable
70017Product does not exist
70063The device with transparent transmission mode does not support sending TSL model data
70089You have limited permission to operate this project or product or device
70097The TSL model of the selected product is empty
71006TSL model data of current version is not found
71009The target product belongs to a hardware solution that is different from original product
71010The original product TSL data to be copied does not exist
80005OpenAPI does not support setting AEP products
91001Token does not exist
91004Token incorrect
91005Doesn't have permission
91006User not in IP white list
91007Please enable API 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": {}
}