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

# Override sync connection frequency

> Override a sync's default frequency for a specific connection, or revert to the default frequency.

<Info>
  Requires an API key with the `environment:syncs:update` scope. [Learn more about API key scopes](/reference/backend/http-api/api-keys#scopes).
</Info>


## OpenAPI

````yaml PUT /sync/update-connection-frequency
openapi: 3.1.0
info:
  title: Nango API
  description: Nango API specs used to authorize & sync data with external APIs.
  version: 1.0.0
servers:
  - url: https://api.nango.dev
    description: Production server
  - url: http://localhost:3003
    description: Local server
security:
  - bearerAuth: []
externalDocs:
  url: https://nango.dev/docs/reference/backend/http-api/authentication
paths:
  /sync/update-connection-frequency:
    put:
      summary: Update sync frequency
      description: >-
        Override a sync's default frequency for a specific connection, or revert
        to the default frequency.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - provider_config_key
                - connection_id
                - sync_name
                - frequency
              properties:
                provider_config_key:
                  type: string
                  description: The ID of the integration you established within Nango
                connection_id:
                  type: string
                  description: The ID of the connection
                sync_name:
                  type: string
                  description: The name of the sync you want to update
                sync_variant:
                  type: string
                  description: The variant of the sync you want to update
                frequency:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The frequency you want to set (ex: 'every hour'). Set null
                    to revert to the default frequency. Uses the
                    https://github.com/vercel/ms notations. Min frequency: 30
                    seconds.
      responses:
        '200':
          description: Successfully updated the frequency
          content:
            application/json:
              schema:
                type: object
                properties:
                  frequency:
                    type: string
                    description: The updated frequency value
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: The secret key from your Nango environment.

````