Draft & publish

Show what one change did to a page

The before and after of one file in one change, as a line diff with 3 lines of context. Pass key to pick the file in a change that touched several; it defaults to the first. A page that was created or deleted is compared with an empty body. Each side is read from storage at most 512 KB deep. The diff exists only while the old version is still kept: after that it answers 410.

get/api/v1/sites/{slug}/activity/{id}/diff

Request

  • Base URL: https://api.dotsy.ai
  • URL: https://api.dotsy.ai/api/v1/sites/{slug}/activity/{id}/diff
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

slugstring required
Example:acme-studio

Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.

idstring required
Example:7c0e5d3a-1f4b-4b0a-9a55-2f6d1e8b3c90

An event id from the activity list.

Query parameters

keystring

The content key to diff. Default: the first key of the change.

Response

The diff, plus every key of the change and whether it can be undone.

idstring required
keystring required

The key rows belong to.

addedinteger required
removedinteger required
truncatedboolean required

A side was over 512 KB (only its head was compared), or the rows were cut at 2,000.

Changes

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