Content

Give one page its own copy of a shared section

Replaces the page's reference with a copy of the section's HTML, so later edits to the section skip this page. Only for a page that places the section itself; a section from the layout is hidden on the page instead (placement hide). Staged as a draft.

post/api/v1/sites/{slug}/shared-sections/{name}/detach

Request

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

namestring required
Example:booking-banner

The section name.

Request body

pageKeystring required

Content key of the page that gets its own copy, e.g. 'pricing.html'.

ifMatchstring

The page's content hash. If the page changed since, nothing is written.

dryRunboolean

Report what would change; write nothing.

Response

Detached (staged as a draft), or what would change on a dry run.

namestring required
pageKeystring required
writtenstring[] required

Every content key this call staged (or, on a dry run, would stage): the section file, pages, the layout. Staged as a draft; in live publishing mode the dashboard then publishes exactly these keys.

dryRunboolean required
alreadyAppliedboolean required
eventIdstring nullable required

The activity event of this change — undo with POST …/activity/{eventId}/revert. Null on a dry run, when nothing was written, or when the audit insert failed.

Changes

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