Update Trigger
When deploying OTA updates on devices, there are situations when your device state is not compatible with receiving new updates. If, for instance, your device is currently in use by the end-user, you would rather not deploy the new update at that time. Using the Update Trigger call, you can manage from within your application when you would like to receive updates, and when not to. After setting the update trigger, your device will not receive new updates until you unset the trigger.
The Update Trigger for a specific devices can also be updated through the JFrog Connect Platform General Details box when selecting the device in the Devices Page.
post
https://api.connect.jfrog.io/v1/
set_update_trigger
Update Trigger

Example

Python
import json
import requests
#Upswift tokens
user_token = "<user token>"
device_token = "<device token>"
json_content = {'user_token': user_token,
'device_token': device_token,
'trigger_set': True}
call_request = requests.post("https://api.connect.jfrog.io/v1/set_update_trigger", json=json_content)
call_response = json.loads(call_request.text)
if call_request.status_code != 200:
if call_request.status_code == 429:
error = "API limit reached"
else:
error = call_response["error_message"]
print(error)
else:
response_message = call_response["message"]