Create a device template for a fleet
POST /api/v1/projects/:project_id/fleets/:fleet_id/device-templates
Create a device template for a fleet in the project
Path Parameters
- project_id string required
Project ID
- fleet_id string required
Fleet ID
- application/json
Request Body required
Device template body
- _keys string[]
Keys to consider for the update
- fleet_device_template_id string
- fleetId string
- orgId string
- projectId string
template object
device_data_point_config object[]
Array [active booleandata_point_definition_id stringdata_point_name stringdevice_data_policy_id string]device_prefix stringdevice_suffix stringshadow_definition_id string- template_name string
Responses
- 200
- 400
- 401
- 403
Success" {"ok":1,"data":{"fleetDeviceTemplateId":"<fleet_device_template_id>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Bad Request" {"ok":0,"error":{"code":400,"message":"Failed to parse the body for the template creation!","error":"<error>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Unauthorized" {"ok":0,"error":{"code":401,"message":"Unauthorized","error":"<error>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Forbidden" {"ok":0,"error":{"code":403,"message":"Forbidden","error":"<error>"}}
- application/json
- Schema
- Example (from schema)
Schema
{}
Loading...