Create a new device
POST /projects/:project_id/fleets/:fleet_id/devices
Create a new device into the fleet of the project.
Path Parameters
- project_id string required
Project ID
- fleet_id string required
Fleet ID
- application/json
Request Body required
Device Body
- _keys string[]
Keys to consider for the update
- certificate_id string
- connected boolean
- currentShadow integer[]
- device_id string
- device_name string required
- fleet_id string
- last_seen string
- org_id string
- project_id string
- shadow_definition_id string required
- status_flags integer
- tags string[]
Responses
- 200
- 400
- 401
- 403
Success" {"ok":1,"data":{"deviceId":"<device_id>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Bad Request" {"ok":0,"error":{"code":400,"message":"<error_message>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Unauthorized" {"ok":0,"error":{"code":401,"message":"<error_message>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Forbidden" {"ok":0,"error":{"code":403,"message":"<error_message>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Loading...