---
title: "Updates an existing container"
method: PUT
path: "/api/v1/containers"
tags: ["Containers"]
---

# Updates an existing container

`PUT /api/v1/containers`

Updates a container's working version with the provided configuration. The container must exist and the user must have edit permissions.

## Response `200`

Container updated successfully

- ResponseEntitySingleContainerView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` ContainerView
    - `container` Container
      - `getiDate` string, date-time
      - `type` string
      - `owner` string
      - `inode` string
      - `identifier` string
      - `source` 'UNKNOWN' | 'DB' | 'FILE'
      - `title` string
      - `friendlyName` string
      - `modDate` string, date-time
      - `modUser` string
      - `sortOrder` integer
      - `showOnMenu` boolean
      - `code` string
      - `maxContentlets` integer
      - `useDiv` boolean
      - `preLoop` string
      - `postLoop` string
      - `notes` string
      - `hostId` string
      - `hostName` string
      - `variant` string
      - `versionType` string
      - `permissionId` string
      - `versionId` string
      - `working` boolean
      - `deleted` boolean
      - `archived` boolean
      - `live` boolean
      - `locked` boolean
      - `name` string
      - `permissionType` string
      - `idate` string, date-time
      - `categoryId` string
      - `new` boolean
      - `parents` object[]
    - `path` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request - Invalid container data
- `401` — Unauthorized - User not authenticated
- `403` — Forbidden - User lacks edit permissions
- `404` — Container not found
- `500` — Internal server error

---

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