---
title: "Check if a contentlet can be locked"
method: GET
path: "/api/v1/content/_canlock/{inodeOrIdentifier}"
tags: ["Content"]
---

# Check if a contentlet can be locked

`GET /api/v1/content/_canlock/{inodeOrIdentifier}`

Checks if the contentlet specified by its inode or identifier can be locked by the current user.

## Path parameters

- `inodeOrIdentifier` string, required

## Query parameters

- `language` string

## Response `200`

Successfully retrieved lock status

- 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

---

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