Complete the code to send a request that retrieves data from a device.
http_request.method = "[1]"
The GET method is used to request data from a device without changing it.
Complete the code to send data to a device to create a new resource.
http_request.method = "[1]"
POST is used to send data to a device to create a new resource or trigger an action.
Fix the error in the code to update an existing device resource.
http_request.method = "[1]"
PUT is used to update or replace an existing resource on the device.
Fill both blanks to complete the code that sends data to update a device resource.
http_request.method = "[1]" http_request.payload = [2]
PUT method is used to update the resource, and the payload contains the new data.
Fill all three blanks to create a POST request with a JSON payload to add a new device setting.
http_request.method = "[1]" http_request.headers = {"Content-Type": "[2]"} http_request.payload = [3]
POST is used to create new data, the header specifies JSON content, and the payload contains the new setting.