Update warning by ID
post
/productionMonitoring/clientapi/v2/warnings/{warning-id}
Warning update is not supported by the server and is going to be removed
Request
Supported Media Types
- application/json
Path Parameters
-
warning-id: string
The unique identifier of the warning
Header Parameters
-
X-HTTP-Method-Override: string
To perform a partial update of the warning, the POST request should be orchestrated with method override set to PATCH
Response
Supported Media Types
- application/json
- application/vnd.oracle.resource+json;type=singular
405 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/productionMonitoring/clientapi/v2/warnings/{warning-id}
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/productionMonitoring/clientapi/v2/warnings/6c4d38347e8-6b6a
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.