Agent updates

Managed Bramble agent updates — the update window and running updates now.

MethodPathSummary
GET/api/agent-updatesList agent updates
PUT/api/agent-updates/policySet the agent update window
POST/api/agent-updates/runUpdate agents now

#List agent updates

GET/api/agent-updates
Address
https://<your-org>.brambleit.cloud/warden/api/agent-updates
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Warden.

Response 200

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/warden/api/agent-updates', {
  method: 'GET',
  credentials: 'include',
});
const data = await res.json();

#Set the agent update window

PUT/api/agent-updates/policy
Address
https://<your-org>.brambleit.cloud/warden/api/agent-updates/policy
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Warden.

Request body JSON

NameTypeDescription
schedule_daysintegerDays to update on.
window_startanyWhen the window opens, HH:MM.
window_minutesintegerHow long it lasts.
timezoneanyIts time zone.
max_parallelintegerHow many devices at once.
excluded_devicesarray of anyDevices never to update.
enabledbooleanUpdate agents automatically.
update_rmmanyUpdate the RMM agent.
update_remoteanyUpdate the Remote agent.

Response 200

FieldTypeDescription
policyany
Example response
JSON
{
  "policy": null
}

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/warden/api/agent-updates/policy', {
  method: 'PUT',
  credentials: 'include',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"schedule_days":1,"window_start":"…","window_minutes":1,"timezone":"…","max_parallel":1,"excluded_devices":[],"enabled":true,"update_rmm":"…","update_remote":"…"}),
});
const data = await res.json();

#Update agents now

POST/api/agent-updates/run
Address
https://<your-org>.brambleit.cloud/warden/api/agent-updates/run
Requires
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Licence: Warden.

Request body JSON

NameTypeDescription
device_idsarray of any
componentany

Response 201

FieldTypeDescription
queuedinteger
Example response
JSON
{
  "queued": 1
}

Example request

JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/warden/api/agent-updates/run', {
  method: 'POST',
  credentials: 'include',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({"device_ids":[],"component":"…"}),
});
const data = await res.json();