Piloterr
API referenceDeliveries

Change a delivery

PATCH
/v1/projects/{id}/deliveries/{delivery_id}

Only the fields sent change, and only those of the delivery's type: frequency, recipients, direct_link for an email; connection_id, path for cloud storage; enabled for both. New recipients outside the workspace get a confirmation email, within the workspace's quotas (429 confirmation_quota: nothing is changed).

Authorization

ApiKeyAuth
headerX-Api-Key<token>

Path Parameters

id*string

The project's id

Length1 <= length
delivery_id*string

The delivery's id

Length1 <= length

Request Body

application/json
  1. body
enabled?boolean

Whether it delivers; false keeps its settings and sends nothing

frequency?string

run: at the end of each run; daily and weekly: a summary at 07:00 UTC (weekly on Mondays); never: paused

Value in"run""daily""weekly""never"
recipients?array<>

Members of the workspace receive at once; other addresses get a confirmation email first

Items1 <= items <= 20
direct_link?boolean

Add a signed download link (7 days) to the email. Off by default: the link opens the run in the dashboard, behind sign-in

connection_id?string

The cloud connection to upload to, from GET /v1/cloud-connections

Length1 <= length
path?string

Object key under the connection's prefix; variables {project} (the name, as a slug), {project_id}, {run_id}, {date} (YYYY-MM-DD), {time} (HHMMSS, UTC), {format}. It must hold {format}, so each format gets its own file. Default {project}/{date}/{run_id}.{format}

Length1 <= length <= 300

Response Body

Saved

application/json
  1. response
id*string
type*string
Value in"email""cloud"
enabled*boolean
email*|null
cloud*|null
last_sent_at*|

The last digest sent

last_error*string|null
last_error_at*string|null
failure_count*integer
created_at*string
updated_at*string
Example Request
curl -X PATCH 'https://dataflow.piloterr.com/v1/projects/string/deliveries/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "enabled": false
}'
Example Response
{
  "id": "cm4lc8h2j000fl208n6wq1tzs",
  "type": "email",
  "enabled": false,
  "email": {
    "frequency": "run",
    "direct_link": false,
    "recipients": [
      {
        "email": "finance@example.com",
        "status": "verified"
      }
    ]
  },
  "cloud": null,
  "last_sent_at": "2026-11-10T07:00:12.000Z",
  "last_error": null,
  "last_error_at": null,
  "failure_count": 0,
  "created_at": "2026-11-09T08:00:00.000Z",
  "updated_at": "2026-11-09T08:00:00.000Z"
}