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

# Update canned response

> Updates a canned response.

The `text` field is sanitized on update. If sanitization removes all content and the input becomes empty, the system rejects the request as invalid.

**Required scopes:** `canned_responses--groups:rw`, <Tooltip tip="Required to update canned responses in any group.">`canned_responses--all:rw`</Tooltip>


## OpenAPI

````yaml /api/configuration/v3.6/openapi.json post /action/update_canned_response
openapi: 3.1.0
info:
  title: Configuration API
  version: v3.6
servers:
  - url: https://api.livechatinc.com/v3.6/configuration
security:
  - PersonalAccessToken: []
  - OAuth2BearerToken: []
paths:
  /action/update_canned_response:
    post:
      tags:
        - Canned responses
      summary: Update canned response
      description: >-
        Updates a canned response.


        The `text` field is sanitized on update. If sanitization removes all
        content and the input becomes empty, the system rejects the request as
        invalid.
      operationId: update-canned-response
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCannedResponseRequest'
            example:
              id: 12345
              text: Thank you for contacting us! How may I assist you today?
              tags:
                - greeting
                - support
                - updated
              group_id: 1
              is_private: true
      responses:
        '200':
          description: Canned response updated successfully.
components:
  schemas:
    UpdateCannedResponseRequest:
      type: object
      required:
        - id
      properties:
        id:
          type: integer
          description: The ID of the canned response to update.
        text:
          type: string
          description: >-
            The updated canned response text. The API sanitizes the text and
            rejects the request as invalid if sanitization removes all content.
        tags:
          type: array
          items:
            type: string
          description: An array of tags.
        group_id:
          type: integer
          description: The updated group ID for the canned response.
        is_private:
          type: boolean
          description: >-
            If set to `true`: makes the canned response private. If set to
            `false`: makes it public.
  securitySchemes:
    PersonalAccessToken:
      type: http
      scheme: basic
      description: >-
        Use your `account ID` as the username and your personal access token
        (PAT) as the password, or pass a Base64-encoded value directly in the
        Authorization header. For more information, see the <a
        href="/authentication/personal-access-tokens">personal access tokens
        guide</a>.
    OAuth2BearerToken:
      type: http
      scheme: bearer
      description: Authenticate using an OAuth 2.0 Bearer token.
      x-example: us-south1:MQraNrGCsoJvtxD7KNJQB1kM3d5

````

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