---
title: "Update import destination"
method: PATCH
path: "/import/destinations/{id}"
tags: ["Import Destinations"]
---

# Update import destination

`PATCH /import/destinations/{id}`

Update an existing import destination.

## Path parameters

- `id` string, required

## Query parameters

- `force` boolean

## Request body

- UpdateDestinationRequest
  - `destination` UpdateDestinationOptions, required
    - `name` string — Unique name for this destination.
    - `type` 'webhook_record' | 'webhook_batch' — Destination type.
    - `record_schema` unknown
    - `webhook_record` UpdateWebhookRecordOptions
      - `request_template` HTTPRequestTemplate
        - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', required — HTTP method for the request.
        - `uri` string, required — Request URI with template variables.
        - `headers` object — HTTP headers.
        - `body` string — Request body template.
      - `max_records_per_minute` integer — Rate limit for records per minute.
      - `max_concurrency` integer — Maximum concurrent request clients.
    - `webhook_batch` UpdateWebhookBatchOptions
      - `request_template` HTTPRequestTemplate
        - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', required — HTTP method for the request.
        - `uri` string, required — Request URI with template variables.
        - `headers` object — HTTP headers.
        - `body` string — Request body template.
      - `format` 'parquet' | 'csv' | 'json'
      - `max_size_per_batch` integer — Maximum records per batch.
      - `max_batches_per_minute` integer — Rate limit for batches per minute.
      - `max_concurrency` integer — Maximum concurrent request clients.

## Response `200`

OK

- object
  - `status` 'success', required
  - `data` GetDestinationResponse, required — unresolved $ref
  - `message` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/prequel/apis/prequel-data-export.md) · [All operations](https://skmtc.dev/prequel/apis/prequel-data-export/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prequel/prequel-data-export/revisions/09c662a871f8/schema)
