> ## Documentation Index
> Fetch the complete documentation index at: https://docs.octavehq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lock or unlock a library entity

> Explicitly change a library entity's lock. Named override editors can unlock on their own behalf; ordinary edits preserve the lock. Requires API write and library lock entitlements.



## OpenAPI

````yaml post /api/v2/entity-lock/update
openapi: 3.0.0
info:
  version: 6.0.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/entity-lock/update:
    post:
      tags:
        - Library Locks
      summary: Lock or unlock a library entity
      description: >-
        Explicitly change a library entity's lock. Named override editors can
        unlock on their own behalf; ordinary edits preserve the lock. Requires
        API write and library lock entitlements.
      operationId: updateEntityLock
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                entityType:
                  type: string
                  enum:
                    - product
                    - service
                    - solution
                    - persona
                    - playbook
                    - segment
                    - use_case
                    - competitor
                    - alternative
                    - buying_trigger
                    - core_feature
                    - objection
                    - proof_point
                    - reference
                    - hypothesis
                    - brand_voice
                    - skill
                entityId:
                  type: string
                  minLength: 1
                locked:
                  type: boolean
                  description: >-
                    True to lock editing; false to explicitly unlock for
                    everyone with normal editing access.
              required:
                - entityType
                - entityId
                - locked
      responses:
        '200':
          description: Lock updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  success:
                    type: boolean
                  locked:
                    type: boolean
                required:
                  - _metadata
                  - success
                  - locked
        '403':
          description: Not allowed to manage this lock
        '404':
          description: Entity not found in this workspace
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.