Make an element a shared section
Saves the element as fragments/<name>.html and replaces it with a reference on the source page and on the pages you include — or, with every_page, puts one reference in the layout instead. All pages change together or none do. Staged as a draft, recorded as one activity event (undo it from there). A retry of a share that already happened answers alreadyApplied. Sharing again under the name of a section that holds this same block adds the pages to it. With selectors, a run of elements next to each other becomes one section inside a wrapper (wrapTag, keepLayout), and every page with the same run gets the reference in its place.
Request
- Base URL: https://api.dotsy.ai
- URL: https://api.dotsy.ai/api/v1/sites/{slug}/shared-sections
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Site slug or site id (UUID). An old slug answers 301/308 and a site id 307 to the canonical slug path.
Request body
Response
Shared (staged as a draft).
Example response
{
"key": "fragments/booking-banner.html"
}Changes
No recorded changes to this operation across all 1 revision of this API.