State 1 for RESTful
- User Information
- Device Information
- Certificate
- Access Token
- Firmware Information
- B2C adaptor
- Device Management
- Certificate Management
- Firmware Management
- 0.1.0
- head version for this document
Description
create a device record on cloud during provision
Access Role
Admin, User
Method
POST
URL/Params
Content*
JSON
{
"id": 0,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
Response
200
Error Response
Device
- id: long
- identity: UUID
- model: String
- SN: String
- onboard: timestamp
Certificate
- id: long
- issue_date: timestamp
- is_valid: boolean
- uri: String
- issuer: String
- download_date: timestamp
- last_verify: timestamp
Access Token
- id: long
- issue_date: timestamp
- batch_id: long
- value: String (*)
- is_valid: boolean
- is_activated: boolean
- download_date: timestamp
- last_verify: timestamp
Firmware
- id: long
- upload_date: timestamp
- name: String
- device_model: String
- download_count: long
- is_allow: boolean
- last_download: timestamp