Create property template
- Print
- PDF
Create property template
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Summary
Creates a property template.
Request
Request URL
POST {CLOUD_IOT_CORE_API_URL}/propertytemplates
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Request body
{
"name": "string",
"key":["string"]
}
Category | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
name | Yes | string | Less than 128 characters. Only lower and upper English letters, numbers, -, and _ are allowed. | Property template name |
key | Yes | list[string] | Up to 10 keys can be created. Key value must be less than 128 characters and made up of lower and upper English letters, -, and _ | Property template key |
Response
Response body
{
"status": "string",
"body": {
"name": "string",
"key": ["string"],
"modifyTime": "localDateTime",
"registerTime": "localDateTime"
}
}
Category | Type | Description |
---|---|---|
status | string | Indicates whether response was successful |
body.name | string | Property template name |
body.key | list[string] | Property template key |
body.modifyTime | localDateTime | Property template last modified date |
body.registerTime | localDateTime | Property template creation date |
Example
{
"status": "SUCCESS",
"body": {
"name": "bulb_template",
"key": ["lux", "ampere"],
"modifyTime": "2020-09-25 14:15:25",
"registerTime": "2020-09-25 14:15:25"
}
}
Was this article helpful?