---
title: "Lock a given contentlet by the current user"
method: PUT
path: "/api/v1/content/_lock/{inodeOrIdentifier}"
tags: ["Content"]
---

# Lock a given contentlet by the current user

`PUT /api/v1/content/_lock/{inodeOrIdentifier}`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/v1/content/_lock/{inodeOrIdentifier}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/v1/content/_lock/:inodeOrIdentifier/put.ts> (a function with typed inputs; its response is checked against the schema)

If the user is allowed to lock the contentlet specified by its inode or identifier, the contentlet will be locked.

## Path parameters

- `inodeOrIdentifier` string, required

## Query parameters

- `language` string

## Response `200`

Successfully locked contentlet

- ResponseEntityMapView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400`: Bad request
- `401`: Invalid User
- `403`: Forbidden
- `404`: Content not found
- `500`: Internal Server Error

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v1/content/_lock/:inodeOrIdentifier/put.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
