Skip to end of metadata
Go to start of metadata

Properties provide information about the internal state of a Thing. Several basic operations on properties are defined which can be implemented through a REST API tool or command line tool, such as cURL.

Create property


Create a new thing property.

 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API REST Tip'.

1. Request

POST /<api-version>/things/<thingId>/properties.<format>

Parameter Required Type Default Description

api-version

x string -

API version. Currently v1.

thingId x string - Identifier of thing.

format

x string -

Request/response format. Currently supported format is json.

 

2. Request Body

New property attributes:

Attribute Required Type Default Information
name x string - Property name.
type x string - Property type: persistent,remote, script.
dataType x string - Property data type: string, int, long, float, double, date, boolean, uuid, <type>[], <user_type>.
nullable x boolean - True if property value can be set to null.
private x boolean - True if property is visible for external calls.
readOnly x boolean - True if property is read only.
description   string null Property description.

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Spacer'.

 

3. Response Status

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API HTTP Response - Get'.

 

4. Response Body

The string ID of a created property


5. Examples

Request
Response

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API MAPI Outdated'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Messaging Tip'.

1. Request

Attribute Required Type Default Information
id   string null Request identifier established by the client
thingId x string - Identifier of a thing.
property x object - Property details to create
name x string - Property name.
type x string - Property type: persistent,remote, script.
dataType x string - Property data type: string, int, long, float, double, date, boolean, uuid, <type>[], <user_type>.
nullable x boolean - True if property value can be set to null.
private x boolean - True if property is visible for external calls.
readOnly x boolean - True if property is read only.
description   string null

Property description.

 

2. Response

Attribute Required Type Default Description
id   string null Request identifier specified in request

result

x string

Created property ID

 

3. Example

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Mosquitto'.

Request
Response

Get property details


Get property information by the ID.

 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API REST Tip'.

1. Request

GET /<api-version>/things/<thingId>/properties/<propertId>.<format>

Parameter Required Type Default Description

api-version

x string -

API version. Currently v1.

thingId

x string -

Identifier of a thing.

propertyId x string - Identifier of a property.

format

x string -

Request/response format. Currently supported format is json.

 

2. Response Status

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API HTTP Response - Get'.


3. Response Body

Property attributes:

Attribute Required Type Default Information
id x string - Identifier of a property.
name x string - Property name.
type x string - Property type: persistent,remote, script.
dataType x string - Property data type: string, int, long, float, double, date, boolean, uuid, <type>[], <user_type>.
nullable x boolean - True if property value can be set to null.
private x boolean - True if property is visible for external calls.
readOnly x boolean - True if property is read only.
description   string null

Property description.


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Spacer'.

 

4. Examples

Request
Response

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API MAPI Outdated'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Messaging Tip'.

1. Request

Attribute Required Type Default Description
id   string null Request identifier established by the client 

thingId

x string

Identifier of a thing.

propertyId x string - Identifier of a property.

 

2. Response

Attribute Required Type Default Information
id   string null Request identifier established by the client
result   object null Property details
id x string - Identifier of a property.
name x string - Property name.
type x string - Property type: persistent,remote, script.
dataType x string - Property data type: string, int, long, float, double, date, boolean, uuid, <type>[], <user_type>.
nullable x boolean - True if property value can be set to null.
private x boolean - True if property is visible for external calls.
readOnly x boolean - True if property is read only.
description   string null

Property description.

 

3. Example

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Mosquitto'.

Request
Response

 

Get properties


Obtain list of a properties.

 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API REST Tip'.

1. Request

GET /<api-version>/things/<thingId>/properties.<format>

Parameter Required Type Default Description

api-version

x string -

API version. Currently v1.

thingId x string - Identifier of thing.

format

x string -

Request/response format. Currently supported format is json.

 

2. Response Status

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API HTTP Response - Get'.


3. Response Body

Array with property information:

Attribute Required Type Default Information
id x string - Property Id.
name x string - Property name.
type x string - Property type: persistent,remote, script.
dataType x string - Property data type: string, int, long, float, double, date, boolean, uuid, <type>[], <user_type>.
nullable x boolean - True if property value can be set to null.
private x boolean - True if property is visible for external calls.
readOnly x boolean - True if property is read only.
description   string null Property description.

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Spacer'.

 

4. Examples

Request
Response

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API MAPI Outdated'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Messaging Tip'.

1. Request

Attribute Required Type Default Information
id   string null Request identifier established by the client
thingId x string - Identifier of a thing.


2. Response

Attribute Required Type Default Information
id   string null Request identifier established by the client 
result x array null Array of properties
id x string - Property Id.
name x string - Property name.
type x string - Property type: persistent,remote, script.
dataType x string - Property data type: string, int, long, float, double, date, boolean, uuid, <type>[], <user_type>.
nullable x boolean - True if property value can be set to null.
private x boolean - True if property is visible for external calls.
readOnly x boolean - True if property is read only.
description   string null Property description.

 

3. Example

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Mosquitto'.

Request
Response

 

Get property value


Get property value.

 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API REST Tip'.

1. Request

GET /<api-version>/things/<thingId>/properties/<propertyId>/value.<format>?cached=<cached>&ignoreNulls=<ignore_nulls>

Parameter Required Type Default Description

api-version

x string -

API version. Currently v1.

thingId

x string -

Identifier of a thing.

propertyId x string - Identifier of a property.

format

x string -

Request/response format. Currently supported format is json.

cached x boolean false Use last server cached value
ignoreNulls x boolean true Skip null-value attributes

 

2. Response Status

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API HTTP Response - Get'.


3. Response Body

Property value.

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Spacer'.

 

4. Examples

Request
Response

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API MAPI Outdated'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Messaging Tip'.

1. Request

Attribute Required Type Default Description
id   string null Request identifier established by the client 

thingId

x string

Identifier of a thing.

propertyId x string - Identifier of a property.
cached   boolean false Use last server cached value
ignoreNulls   boolean true Skip null-value attributes

 

2. Response

Attribute Required Type Default Information
id   string null Request identifier established by the client
result   object null Property value

 

3. Example

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Mosquitto'.

Request
Response

 

Get values of all properties


Get value of all thing properties.

 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API REST Tip'.

1. Request

GET /<api-version>/things/<thingId>/properties/values.<format>?cached=<cached>&ignoreNulls=<ignore_nulls>

Parameter Required Type Default Description

api-version

x string -

API version. Currently v1.

thingId

x string -

Identifier of a thing.

format

x string -

Request/response format. Currently supported format is json.

cached   boolean false Use last server cached value
ignoreNulls   boolean true Skip null-value attributes

 

2. Response Status

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API HTTP Response - Get'.


3. Response Body

PropertyId-Value map.

Attribute Required Type Default Description
propertyId x string - Identifier of a property.
value x object null Property value

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Spacer'.

 

4. Examples

Request
Response

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API MAPI Outdated'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Messaging Tip'.

1. Request

Attribute Required Type Default Description
id   string null Request identifier established by the client 

thingId

x string

Identifier of a thing.

cached x boolean false Use last server cached value
ignoreNulls x boolean true Skip null-value attributes

 

2. Response

Attribute Required Type Default Information
id   string null Request identifier established by the client
result   object null Map of propertyId-value
propertyId x string - Property Id.
value x object - Property value.

 

3. Example

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Mosquitto'.

Request
Response

 

Set property value


Set property value.

 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API REST Tip'.

1. Request

PUT /<api-version>/things/<thingId>/properties/<propertyId>/value.<format>?async=<async>

Parameter Required Type Default Description

api-version

x string -

API version. Currently v1.

thingId

x string -

Identifier of a thing.

propertyId x string - Identifier of a property.

format

x string -

Request/response format. Currently supported format is json.

async   boolean false Asynchronous execution flag.

 

2. Request Body

Property value.

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Spacer'.

 

3. Response Status

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API HTTP Response - Update'.


4. Examples

Request
Response

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API MAPI Outdated'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Messaging Tip'.

1. Request

Attribute Required Type Default Description
id   string null Request identifier established by the client 

thingId

x string

Identifier of a thing.

propertyId x string - Identifier of a property.
async   boolean false Asynchronous execution flag.
value x object - Property value.

 

2. Response

Attribute Required Type Default Information
id   string null Request identifier established by the client

 

3. Example

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Mosquitto'.

Request
Response

 

Delete property


Delete property.

 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API REST Tip'.

1. Request

DELETE /<api-version>/things/<thingId>/properties/<propertyId>.<format>

Parameter Required Type Default Description

api-version

x string -

API version. Currently v1.

thingId

x string -

Identifier of a thing.

propertyId x string - Identifier of a property.

format

x string -

Request/response format. Currently supported format is json.


2. Response Status

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API HTTP Response - Update'.


3. Examples

Request
Response

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API MAPI Outdated'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Messaging Tip'.

1. Request

Attribute Required Type Default Description
id   string null Request identifier established by the client 

thingId

x string

Identifier of a thing.

propertyId x string - Identifier of a property.

 

2. Response

Attribute Required Type Default Information
id   string null Request identifier established by the client

 

3. Example

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'API Mosquitto'.

Request
Response
  • No labels