Create Template

Create Template
Request
URI
POST
https://{api_host}/api/device-templates
COPY
Request Body
devicemgmtDeviceTemplateRequest of type(s) application/json
Required
"devicemgmtDeviceTemplateRequest Object"
array of object
imageDetails
Optional

imageDetails

string
name
Optional

name

array of object
settings
Optional

settings

array of object
systemProperties
Optional

systemProperties

array of object
allowedMetrics
Optional

allowedMetrics

object
enrollmentProvider
Optional

enrollmentProvider

string
deviceType
Optional
Constraints: default: UNKNOWN_TYPE

deviceType

Possible values are : UNKNOWN_TYPE, GATEWAY, THING,
array of object
allowedCommands
Optional

allowedCommands

array of object
customProperties
Optional

customProperties

array of string
childTemplates
Optional

childTemplates

Responses
200
Returns devicemgmtDeviceTemplateId of type(s) */*
{
    "id": "string"
}
string
id
Optional

id


404

Not Found

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/device-templates