Page

Update contentlet styles in a page

Changed on

Updates style properties for contentlets within containers on a specific page. Only updates the styleProperties field without modifying page structure.

put/api/v1/page/{pageId}/styles

Request

Path parameters

pageIdstring required

Page identifier

Request body

identifierstring required

Container identifier

uuidstring required

Container unique identifier (UUID)

personaTagstring

Raw Persona key tag (e.g. the value of viewAs.persona.keyTag) to personalize this style update for. Do not include the 'dot:persona:' prefix -- the backend adds it automatically. Omit for the default persona.

Example request

{
  "identifier": "//demo.dotcms.com/application/containers/default/",
  "uuid": "1",
  "personaTag": "returning_visitor"
}

Response

Contentlet styles updated successfully

i18nMessagesMapobject
permissionsstring[]

Example response

{
  "entity": [
    {
      "containerId": "//demo.dotcms.com/application/containers/default/",
      "dotStyleProperties": {
        "color": "#FF0000",
        "margin": "10px"
      }
    }
  ]
}

Changes