Appearance
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 Name | Parameter Description | Request Type | Required | Data Type | Schema |
---|---|---|---|---|---|
language | Language: CN/EN (default: CN) | query | false | ||
productId | Product 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 precedence | query | false | integer(int64) | |
productKey | Product 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 precedence | query | false | string |
Response Status:
Status Code | Description | Schema |
---|---|---|
200 | OK | ActionResult |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | |
50000 | Service exception | |
50005 | Parameter check error | |
50006 | The productID or productKey is empty | |
50007 | The deviceID, productKey or deviceKey is empty | |
70000 | Hub service unavailable | |
70017 | Product does not exist | |
70063 | The device with transparent transmission mode does not support sending TSL model data | |
70089 | You have limited permission to operate this project or product or device | |
70097 | The TSL model of the selected product is empty | |
71006 | TSL model data of current version is not found | |
71009 | The target product belongs to a hardware solution that is different from original product | |
71010 | The original product TSL data to be copied does not exist | |
80005 | OpenAPI does not support setting AEP products | |
91001 | Token does not exist | |
91004 | Token incorrect | |
91005 | Doesn't have permission | |
91006 | User not in IP white list | |
91007 | Please enable API permission |
Response Parameters:
Parameter Name | Parameter Description | Type | Schema |
---|---|---|---|
code | Return code | object | |
data | Object | object | |
exp1 | string | ||
msg | Prompt message | object | |
pageNum | Current page number | object | |
pageSize | Items per page | object | |
pages | Total pages | object | |
total | Total count | object |
Response Example:
javascript
{
"code": {},
"data": {},
"exp1": "",
"msg": {},
"pageNum": {},
"pageSize": {},
"pages": {},
"total": {}
}