Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Pipelines

Backfill pipeline tables

POST/pipelines/{uuid}/backfill

Triggers a backfill for specified tables in the pipeline. Supports options for pre-backfill behavior (drop, truncate, or do nothing) and schema/database filtering.

Authorizations

  • Authorizationstringheaderrequired

    API key passed as a Bearer token in the Authorization header.

Request

curl --request POST \
  --url https://api.artie.com/pipelines/{uuid}/backfill \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "backfillBatchSize": 0,
  "backfillDefaults": {
    "chunkSize": 100000,
    "pagination": "client",
    "parallelism": 1,
    "preset": "normal",
    "readMode": "primaryKey"
  },
  "backfillFromDatabases": [
    "<string>"
  ],
  "backfillFromSchemas": [
    "<string>"
  ],
  "beforeBackfill": "",
  "historyMode": true,
  "keepOldTable": true,
  "tableUUIDs": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'

Path parameters

  • uuidstringrequired

Body

application/json

  • backfillBatchSizeinteger | null

    Optional rows per batch. Saved as the pipeline's backfill batch size before the backfill starts, so later backfills use it too.

    Range x ≥ 0

  • backfillDefaultsobject

    Optional backfill speed. Saved as the pipeline's backfill speed before the backfill starts, so later backfills use it too.

    Show child attributes
    • chunkSizeinteger

      Range 100000 ≤ x ≤ 100000000

    • paginationstring

      Available options: client, server

    • parallelisminteger

      Range 1 ≤ x ≤ 50

    • presetstring

      Available options: normal, performance

    • readModestring

      Available options: primaryKey, range, ctid

  • backfillFromDatabasesstring[] | null

    Optional source databases to backfill for regular-table backfills. Requires beforeBackfill to be the empty-string do-nothing option.

  • backfillFromSchemasstring[] | null

    Optional source schemas to backfill for regular-table backfills. Requires beforeBackfill to be the empty-string do-nothing option.

  • beforeBackfillstringrequired

    Destination handling before the backfill: empty string leaves existing data unchanged, truncate_table truncates the destination table, and drop_table drops it.

    Available options: , truncate_table, drop_table, swap_table

  • historyModeboolean

    When true, backfill the selected history tables instead of the regular tables.

  • keepOldTableboolean

    Only for swap_table: keep the destination table's old rows in a separate table after the swap, until the next swap_table backfill of this table.

  • tableUUIDsstring<uuid>[]required

    UUIDs of the regular or history tables to backfill.

Responses

204No Content

400Bad Request

403Forbidden

500Internal Server Error

Was this page helpful?