Request agent update
POST
/sensors/{sensor}/upgrade-agent
const url = 'https://demo.suricatavel.org/api/v1/sensors/1/upgrade-agent';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"target_version":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://demo.suricatavel.org/api/v1/sensors/1/upgrade-agent \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "target_version": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”sensor
required
integer
Request Body
Section titled “Request Body”Media typeapplication/json
object
target_version
string
Example generated
{ "target_version": "example"}Responses
Section titled “Responses”Job queued (agent upgrade)

