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

# Update Freshdesk settings

> Change Freshdesk ticket intake, handoff routing and marker field, extra AI agents, or the note footer. Omitted fields keep their value.



## OpenAPI

````yaml patch /integrations/freshdesk/settings
openapi: 3.1.0
info:
  title: OpenCX API
  description: >

    OpenCX is an AI-powered, all-in-one platform for customer support and
    outbound communications.


    Use this API to manage your OpenCX organization's AI agents, actions,
    conversations, contacts, and more.


    To get started, generate a new API key from the dashboard.


    ## Authentication

    All API endpoints require authentication using a Bearer token. You can
    generate an API key from your OpenCX dashboard.


    ## Rate Limiting

    API requests are rate limited to ensure fair usage. The current limits are:

    - 100 requests per minute for standard endpoints

    - 1000 requests per minute for streaming endpoints


    ## Error Handling

    The API uses standard HTTP status codes and returns detailed error messages
    in the response body.
  version: 1.0-beta
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: http://localhost:8080
    description: Development
  - url: https://api.open.cx
    description: Production
security:
  - bearerAuth: []
paths:
  /integrations/freshdesk/settings:
    patch:
      summary: Update Freshdesk settings
      description: >-
        Partially update the Freshdesk integration settings; omitted fields keep
        their value. Saved exactly like the dashboard: the stored connection is
        re-checked, extra AI agent ids are verified and a missing handoff marker
        field comes back in `warnings`. The domain and API key cannot be changed
        here. Answers 404 when Freshdesk is not connected, 400 for an invalid
        combination (assign_to_agent without handoff_agent_id, assign_to_group
        without handoff_group_id).
      operationId: updateFreshdeskSettings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                auto_handle_all_incoming_chats:
                  description: >-
                    Handle every incoming ticket, not only those assigned to the
                    AI agent or default group
                  type: boolean
                default_group_id:
                  description: >-
                    Group whose tickets the AI handles when not handling all
                    tickets
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                handoff_behavior:
                  description: >-
                    Where a ticket goes when the AI hands off: unassign,
                    freshdesk_automation, assign_to_agent, assign_to_group
                  type: string
                  enum:
                    - unassign
                    - freshdesk_automation
                    - assign_to_agent
                    - assign_to_group
                handoff_agent_id:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                handoff_group_id:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                handoff_marker_property_name:
                  description: >-
                    Custom ticket checkbox field (cf_ name) set to true on
                    handoff
                  type: string
                  minLength: 1
                assist_mode_footer_message:
                  description: Footer appended to assist-mode private notes
                  anyOf:
                    - type: string
                    - type: 'null'
                ai_agent_ids:
                  description: >-
                    Additional Freshdesk agent ids the AI acts as; replaces the
                    list
                  maxItems: 25
                  type: array
                  items:
                    type: string
                    pattern: ^\d+$
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  connected:
                    type: boolean
                    description: Whether Freshdesk is connected for the organization
                  settings:
                    anyOf:
                      - $ref: '#/components/schemas/FreshdeskSettingsResponseDto'
                      - type: 'null'
                  warnings:
                    type: array
                    items:
                      type: string
                    description: Non-fatal setup issues
                required:
                  - connected
                  - settings
                  - warnings
                additionalProperties: false
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
components:
  schemas:
    FreshdeskSettingsResponseDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/FreshdeskSettingsResponseDto'
      type: object
      properties:
        id:
          type: string
        org_id:
          type: string
        domain:
          type: string
        agent_id:
          type: string
        enabled:
          type: boolean
        auto_handle_all_incoming_chats:
          type: boolean
        default_group_id:
          anyOf:
            - type: string
            - type: 'null'
        handoff_behavior:
          type: string
          enum:
            - unassign
            - freshdesk_automation
            - assign_to_agent
            - assign_to_group
        handoff_agent_id:
          anyOf:
            - type: string
            - type: 'null'
        handoff_group_id:
          anyOf:
            - type: string
            - type: 'null'
        handoff_marker_property_name:
          type: string
        assist_mode_footer_message:
          anyOf:
            - type: string
            - type: 'null'
        ai_agent_ids:
          type: array
          items:
            type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - org_id
        - domain
        - agent_id
        - enabled
        - auto_handle_all_incoming_chats
        - default_group_id
        - handoff_behavior
        - handoff_agent_id
        - handoff_group_id
        - handoff_marker_property_name
        - assist_mode_footer_message
        - ai_agent_ids
        - created_at
        - updated_at
      additionalProperties: false
    ErrorDto:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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