Update definition of asset type property
post
/assetMonitoring/clientapi/v2/assetTypes/{asset-type-name}/properties/{property-name}
This resource updates definition of asset type property by its name
Request
Supported Media Types
- application/json
Path Parameters
-
asset-type-name: string
Entity description is undefined
-
property-name: string
Name of the property which configuration will be updated
Header Parameters
-
X-HTTP-Method-Override: string
To perform a configuration update of the asset device action, POST request should be orchestrated with method override set to PATCH
Response
Supported Media Types
- application/json
- application/vnd.oracle.resource+json;type=singular
202 Response
Successfully processed.
Examples
curl -X POST
-u <username>:<password>
-H 'Accept: application/json'
-H 'Content-Type: application/json'
--header "X-HTTP-Method-Override: PATCH"
https://iotserver/assetMonitoring/clientapi/v2/assetTypes/{asset-type-name}/properties/{property-name}
Complete cURL Example
The following example shows a complete cURL command that you can use to perform the described operation:
curl -X POST
-u <username>:<password>
-H 'Accept: application/json'
-H 'Content-Type: application/json'
--header "X-HTTP-Method-Override: PATCH"
https://iotserver/assetMonitoring/clientapi/v2/assetTypes/{asset-type-name}/properties/{property-name}
Note that in the request,
https://iotserver
will be replaced by the name and port of your assigned IoT Cloud Service instance. The format of the Cloud Service instance is
https://myinstance-myidentitydomain.iot.us.oraclecloud.com
and the default port is 443.