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

# Update Destination



## OpenAPI

````yaml PATCH /api/v1/destinations/{slug}/
openapi: 3.0.3
info:
  title: Nekt API
  version: v1
  description: Nekt API Documentation
  contact:
    email: support@nekt.ai
servers:
  - url: https://api.nekt.ai
security: []
paths:
  /api/v1/destinations/{slug}/:
    patch:
      tags:
        - v1
      operationId: v1_destinations_partial_update
      parameters:
        - in: path
          name: slug
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedEditDestination'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedEditDestination'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedEditDestination'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PatchedEditDestination:
      type: object
      properties:
        draft:
          type: boolean
        active:
          type: boolean
        description:
          type: string
        connector_config: {}
        input_tables:
          type: array
          items:
            $ref: '#/components/schemas/InputTablesWrite'
        python_execution_cpu:
          type: integer
        python_execution_memory:
          type: integer
        trigger:
          nullable: true
        settings_number_of_retries:
          type: integer
        settings_retry_delay_seconds:
          type: integer
        settings_max_consecutive_failures:
          type: integer
          nullable: true
    Destination:
      type: object
      description: >-
        Serializer mixin: relabels the actor as "Nekt Support" for
        customer-facing

        output when the row was produced during a support impersonation session.


        Add to any serializer whose model is an ``ImpersonationAttributedModel``
        and

        that exposes ``created_by`` and/or ``triggered_by``. The real user stays
        in the

        DB and the real agent stays in the ImpersonationSession audit trail.


        The API contract is preserved: an EXPANDED actor field returns the full

        "Nekt Support" object, while an UNEXPANDED one returns the
        ``NEKT_SUPPORT_ID``

        sentinel string — same scalar-id vs object shape as a normal user. We
        never

        return the real user's id here (the frontend would resolve it against
        the org

        and surface the impersonated customer instead of "Nekt Support").
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        is_ml_ai_connector:
          type: boolean
          readOnly: true
        slug:
          type: string
          readOnly: true
          pattern: ^[-a-zA-Z0-9_]+$
        archived:
          type: boolean
          readOnly: true
        deleted:
          type: boolean
          readOnly: true
        draft:
          type: boolean
          readOnly: true
        active:
          type: boolean
          readOnly: true
        status:
          type: string
          readOnly: true
        deploy_failed:
          type: boolean
          readOnly: true
        deploy_failed_reason:
          type: string
          readOnly: true
        connector_config:
          readOnly: true
        description:
          type: string
          readOnly: true
        input_tables:
          type: array
          items: {}
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        python_execution_cpu:
          type: integer
          readOnly: true
        python_execution_memory:
          type: integer
          readOnly: true
        settings_number_of_retries:
          type: integer
          readOnly: true
          description: The number of times to retry a task in the settings if it fails
        settings_retry_delay_seconds:
          type: integer
          readOnly: true
          title: Settings retry delay in seconds
          description: The number of seconds to retry a task in the settings if it fails
        settings_max_consecutive_failures:
          type: integer
          readOnly: true
          nullable: true
          description: >-
            The maximum number of consecutive failures allowed before the
            settings is paused
        connector_version:
          type: string
          readOnly: true
          description: Connector version used by this destination (Expandable)
        last_run:
          type: string
          readOnly: true
          description: Last Run from this destination (Expandable)
        created_by:
          type: integer
          readOnly: true
          description: User that created this destination (Expandable)
      required:
        - active
        - archived
        - connector_config
        - connector_version
        - created_at
        - created_by
        - deleted
        - deploy_failed
        - deploy_failed_reason
        - description
        - draft
        - id
        - input_tables
        - is_ml_ai_connector
        - last_run
        - python_execution_cpu
        - python_execution_memory
        - settings_max_consecutive_failures
        - settings_number_of_retries
        - settings_retry_delay_seconds
        - slug
        - status
        - updated_at
    InputTablesWrite:
      type: object
      properties:
        table:
          type: string
          format: uuid
        primary_keys:
          type: array
          items:
            type: string
          writeOnly: true
          default: []
        fields:
          type: array
          items:
            type: string
        name_alias:
          type: string
        field_mapping: {}
      required:
        - fields
        - table
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key authentication. Format: ''x-api-key: api_key'''

````