---
title: "Add or update content in page containers"
method: POST
path: "/api/v1/page/{pageId}/content"
tags: ["Page"]
---

# Add or update content in page containers

`POST /api/v1/page/{pageId}/content`

Updates all the contents in an HTML Page. Used to add or remove Contentlets from Containers. Takes a JSON array of container entries, each specifying a container ID, a unique UUID, and the list of contentlet identifiers. Duplicate container entries are merged automatically. Note: 'sortOrder' is required for each container entry but may not be present in the auto-generated schema.

## Path parameters

- `pageId` string, required

## Query parameters

- `variantName` string

## Request body

- PageContainerForm
  - `requestJson` string
  - `containerEntries` ContainerEntry[]
    - `personaTag` string
    - `contentIds` string[]
    - `stylePropertiesMap` object
    - `containerId` string
    - `containerUUID` string

## Response `200`

Contentlets saved successfully

## Other responses

- `400` — Bad request or data exception

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
