Skip to main content
GET
/
sites
/
{siteId}
/
backups
/
{fromFilename}
/
diff
/
{toFilename}
Compare Two Backups
curl --request GET \
  --url https://api.altostrat.io/sites/{siteId}/backups/{fromFilename}/diff/{toFilename} \
  --header 'Authorization: Bearer <token>'
"--- 1732481400.rsc\n+++ 1732567800.rsc\n@@ -10,1 +10,1 @@\n-/ip dhcp-client\n-add interface=ether1 disabled=no\n+/ip dhcp-client\n+add interface=ether1 disabled=yes"

Authorizations

Authorization
string
header
required

A bearer token is required for all API requests. Obtain a token via the Altostrat Authentication API.

Headers

X-Highlight
boolean

Set to true to receive the diff output with syntax highlighting as an HTML fragment (text/html).

X-Download
boolean

Set to true to download the diff as a .diff file (application/octet-stream).

Path Parameters

siteId
string<uuid>
required

The unique identifier for the site.

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

fromFilename
string
required

The older backup file to use as the base for the comparison.

Example:

"1732481400.rsc"

toFilename
string
required

The newer backup file to compare against the base file.

Example:

"1732567800.rsc"

Response

A unified diff of the two backup files. Defaults to text/plain.

The response is of type string.

Example:

"--- 1732481400.rsc\n+++ 1732567800.rsc\n@@ -10,1 +10,1 @@\n-/ip dhcp-client\n-add interface=ether1 disabled=no\n+/ip dhcp-client\n+add interface=ether1 disabled=yes"