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

# Replace the firm lock policy

> Replace the team's lock policy. Only an active admin's own login or API key: team-key and internal-key calls get 403. mode is none, work, amount or percent; amount >= 0 in whole cents is required in amount mode, 0 < percent <= 100 in percent mode.



## OpenAPI

````yaml /api-reference/cx/swagger.json put /packages/retirement/accruals/lock_policy
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /packages/retirement/accruals/lock_policy:
    put:
      tags:
        - packages
      summary: Replace the firm lock policy
      description: >-
        Replace the team's lock policy. Only an active admin's own login or API
        key: team-key and internal-key calls get 403. mode is none, work, amount
        or percent; amount >= 0 in whole cents is required in amount mode, 0 <
        percent <= 100 in percent mode.
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_packages_retirement_accruals.LockPolicy
        description: Lock policy
        required: true
      responses:
        '200':
          description: Saved lock policy
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_packages_retirement_accruals.LockPolicy
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '403':
          description: Not a firm admin
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_packages_retirement_accruals.LockPolicy:
      type: object
      properties:
        amount:
          type: number
        mode:
          type: string
        percent:
          type: number
        updated_at:
          type: string
        updated_by:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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