Replace the content mapping of a page
Changed onReplaces all container-to-contentlet assignments for the page (DEFAULT variant, or a named variant when 'variantName' is provided). This is a full replacement, not a patch: omitting a container slot removes its content. The body is a bare JSON array of container entries; each entry maps one container instance to its ordered list of contentlets. Duplicate entries are merged automatically. To build the payload, fetch GET /api/v1/page/json/{uri} first (faster than /render — no Velocity execution): use 'page.containers' for the path-based identifier and 'page.layout.body.rows[].columns[].containers[]' for the uuid of each slot.
Request
- Base URLhttps://docs.anzworldline-solutions.com.au
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Identifier of the HTML Page to update
Query parameters
Variant name for A/B testing (defaults to DEFAULT)
Request body
Example request
[
{
"identifier": "//demo.dotcms.com/application/containers/default/",
"uuid": "10"
}
]Response
Contentlets saved successfully
Changes
- breaking
request body became required
- breaking
the request's body type changed from
objecttoarray - warning
removed the request property
- warning
removed the request property
- info
api operation id
addContentremoved and replaced withaddContentToPage - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking