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

# Update a translation key

> Update a single translation key for a single language. If the supplied value matches the language's default, the override is removed from the database (mirrors UI behavior).



## OpenAPI

````yaml patch /api/v2/chatbots/{chatbotId}/translations/{language}/{key}
openapi: 3.0.1
info:
  title: LiveChatAI API v2
  description: >-
    LiveChatAI API v2 - Build powerful AI-powered customer support experiences.
    This API follows REST principles with predictable, resource-oriented URLs,
    JSON responses, and standard HTTP methods.
  version: 2.0.0
servers:
  - url: https://app.livechatai.com
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v2/chatbots/{chatbotId}/translations/{language}/{key}:
    patch:
      tags:
        - Translations
      summary: Update a translation key
      description: >-
        Update a single translation key for a single language. If the supplied
        value matches the language's default, the override is removed from the
        database (mirrors UI behavior).
      parameters:
        - in: path
          name: chatbotId
          schema:
            type: string
            example: clx1234567890abcdef
          required: true
          description: Unique identifier of the chatbot
        - in: path
          name: language
          schema:
            type: string
            example: GERMAN
          required: true
          description: Language (predefined enum or custom uppercase identifier)
        - in: path
          name: key
          schema:
            type: string
            example: newMessageToast
          required: true
          description: One of the predefined translation keys
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - value
              properties:
                value:
                  type: string
                  example: Neue Nachricht!
      responses:
        '200':
          description: Translation updated successfully
        '400':
          description: Bad request
        '401':
          description: Unauthorized access
        '404':
          description: Chatbot not found
        '500':
          description: Internal server error occurred
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````