---
title: "Update contentlet styles in a page"
method: PUT
path: "/api/v1/page/{pageId}/styles"
tags: ["Page"]
---

# Update contentlet styles in a page

`PUT /api/v1/page/{pageId}/styles`

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

## Path parameters

- `pageId` string, required

## Request body

- ContentWithStylesForm — Container with contentlet style properties
  - `identifier` string, required — Container identifier
  - `uuid` string, required — Container unique identifier (UUID)

## Response `200`

Contentlet styles updated successfully

- ResponseEntityContentView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` ContentView[]
    - `containerId` string, required — Container identifier
    - `uuid` string, required — Container unique identifier (UUID)
    - `contentletId` string, required — Contentlet identifier
    - `dotStyleProperties` object — Styles defined for the Contentlet
      - `empty` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Invalid request - empty container entries or invalid contentlet references
- `401` — Unauthorized - authentication required
- `403` — Forbidden - user does not have EDIT permission on the page
- `404` — Page not found

---

[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)
