Datapoint Default Values
A default value can be specified for any input datapoint. The default value is sent to the datapoint on initial start-up, and whenever an override value is not active. The default value must conform to the type specification for the datapoint.
URI Definition
Method | URI and Fields |
GET | /iap/devs/{id}/if/{block}/{block_index}/{datapoint_name}/default |
Returns the default value for the specified datapoints. XIFname vs Instance Name
ParametersThe optional path parameters for the id, block, block_index, and datapoint_name path elements are listed on the Path Parameters page. Success ResponseCollections of datapoints defaults. Example
| |
PUT | /iap/devs/{id}/if/{block}/{block_index}/{datapoint_name}/default |
Sets the default value for the specified datapoints. The response code is 200 in case of success, or some error code otherwise. XIFname vs Instance Name
ParametersThe optional path parameters for the id, block, block_index, and datapoint_name path elements are listed on the Path Parameters page. Success ResponseResponse code 200 in case of success or some error code otherwise. Example
| |
DELETE | /iap/devs/{id}/if/{block}/{block_index}/{datapoint_name}/default |
Deletes the default value for the specified datapoints. To delete a default value, the CMS sets the default to null. The response code is 200 in case of success, or some error code otherwise. XIFname vs Instance Name
ParametersThe optional path parameters for the id, block, block_index, and datapoint_name path elements are listed on the Path Parameters page. Success ResponseResponse code 200 in case of success or some error code otherwise. Example
|
Queries
You can include queries with your IAP/REST request to specify a selection rule for your request. As described in Queries and Parameters, you can specify a query as a query parameter appended to the end of your URI preceded with a "?" character, or as a path parameter within a path element of the path component.
The optional path parameters for the id, block, block_index, and datapoint_name path elements are listed on the Path Parameters page.