Sites

Show what changed between two versions

For each path, whether it was added, modified, removed or replaced between two versions of a site. Text files (html, css, js, json, txt, svg) get a unified diff; binary files (images, fonts) only their old and new size. Without to: the current version. Without from: the version before to (for a preview: the live version). Large diffs are left out (diff_omitted) to keep the response small.

get/sites/{id}/diff

Request

  • Base URL: https://api.hypamoon.com/api/v1
  • URL: https://api.hypamoon.com/api/v1/sites/{id}/diff
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.hypamoon.com/oauth/authorize, token URL https://api.hypamoon.com/oauth/token, scopes: sites:read)

Path parameters

idstring uuid required

The id of the site.

Query parameters

fromstring

The id or number of the older version.

tostring

The id or number of the newer version.

Response

What changed.

object'site_diff' required
site_idstring uuid required
truncatedboolean required

true: some diffs were left out to keep the answer small (diff_omitted per file).

Changes

No recorded changes to this operation across all 1 revision of this API.