Create property template
    • PDF

    Create property template

    • PDF

    Article Summary

    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"]
    }
    
    CategoryRequirement statusTypeRestrictionsDescription
    nameYesstringLess than 128 characters. Only lower and upper English letters, numbers, -, and _ are allowed.Property template name
    keyYeslist[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"
        }
    }
    
    CategoryTypeDescription
    statusstringIndicates whether response was successful
    body.namestringProperty template name
    body.keylist[string]Property template key
    body.modifyTimelocalDateTimeProperty template last modified date
    body.registerTimelocalDateTimeProperty 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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.