Piloterr
Referencia de la APIProjects

Duplicate a project

POST
/v1/projects/{id}/duplicate

A new project with the same endpoint, input (the same input_id, URL or search), mapping, settings (rate_percent, max_cost_per_run, output_formats, export_link_ttl_hours, tracked_fields) and api_key_id. Not copied: the schedule (the copy only runs when asked), deliveries, alert subscriptions and runs. The input is not read again. An archived or disabled project can be duplicated; the copy is neither. Counts against the workspace's projects like a creation.

Autorización

ApiKeyAuth
headerX-Api-Key<token>

Parámetros de ruta

id*string

The project's id

Length1 <= length

Parámetros de encabezado

Idempotency-Key?string

Any unique string of yours (a UUID), so that sending the request again does not create it twice: for 24 hours, the same request with the same key answers the first answer again, with the header Idempotent-Replayed: true. The key is the workspace's, per route and path; sent with another body or query, it is refused (422 idempotency_key_reused); while the first request still runs, 409 idempotency_key_in_progress. Answers 5xx, 409 and 429 are not kept: the same key can be sent again.

Match^[\x20-\x7e]{1,255}$

Cuerpo de la solicitud

application/json
  1. body
name?string

The copy's name; left out: the project's name followed by " (copy)", the name cut so that both fit in 120 characters

Length1 <= length <= 120

Cuerpo de la respuesta

Created

application/json
  1. response
id*string
name*string
endpoint_id*string
input*||
mapping*

Per endpoint parameter, the input column it takes ({"column": …}) or a fixed value ({"value": …})

max_cost_per_run*integer|null
rate_percent*integer
output_formats*array<>
export_link_ttl_hours*integer

Hours its download links work (24 by default)

archived_at*string|null
disabled_at*|

Set while the project cannot run (POST /v1/projects/{id}/runs answers 409)

disabled_reason*|

auto_failures: 5 scheduled runs failed in a row (sending a schedule re-arms it); api_key_invalid: its api_key_id was deactivated, expired or deleted (setting another key re-arms it); admin: switched off by Piloterr

Value in"auto_failures""api_key_invalid""admin"null
schedule*|null
tracked_fields*array<string>
template_id*|

The template it was created from

api_key_id*|

The workspace API key it runs with; null: the managed Dataflow key (also when the managed key's own id was sent)

created_at*string
updated_at*string
Example Request
curl -X POST 'https://dataflow.piloterr.com/v1/projects/string/duplicate' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Amazon price tracking (FR)"
}'
Example Response
{
  "id": "cm4kqb61p000dl208s5t2hn7a",
  "name": "Amazon price tracking (FR)",
  "endpoint_id": "cm0p7x3da000a08l4gs5e2n1c",
  "input": {
    "type": "file",
    "input_id": "3f6b1c9e-5d0a-4c7e-9a51-2b8e0f4d7a13"
  },
  "mapping": {
    "query": {
      "column": "asin"
    },
    "domain": {
      "column": "marketplace"
    }
  },
  "max_cost_per_run": 500,
  "rate_percent": 30,
  "output_formats": [
    "csv",
    "json"
  ],
  "export_link_ttl_hours": 24,
  "archived_at": null,
  "disabled_at": null,
  "disabled_reason": null,
  "schedule": null,
  "tracked_fields": [
    "price",
    "stock",
    "coupon"
  ],
  "template_id": null,
  "api_key_id": null,
  "created_at": "2026-11-09T08:00:00.000Z",
  "updated_at": "2026-11-09T08:00:00.000Z"
}