Content

Show the words a similar copy would lose

For one page from analyze's similar.keys: each text, link or image that differs from the shared version. Writes nothing.

post/api/v1/sites/{slug}/shared-sections/compare

Request

  • Base URL: https://api.dotsy.ai
  • URL: https://api.dotsy.ai/api/v1/sites/{slug}/shared-sections/compare
  • 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.

Request body

sourceKeystring required

Content key of the page the element is on, e.g. 'about.html'.

selectorstring required

CSS selector of the element in the page's stored HTML (the editor's selector, or one checked with get_content?selector=). It must match exactly one element.

ifMatchstring

The page's content hash (analyze's sourceEtag). If the page changed since, nothing is written.

keystring required

A page from analyze's similar.keys: the words it would lose by taking the shared version.

Response

What differs.

keystring required
moreboolean required

Example response

{
  "changes": [
    {
      "tag": "h2"
    }
  ]
}

Changes

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