---
title: "Chunks put in storage"
method: POST
path: "/v1/ingest/complete"
tags: ["Flights"]
---

# Chunks put in storage

`POST /v1/ingest/complete`

## Request

- Base URL: `https://api.uxduck.com`
- URL: `https://api.uxduck.com/v1/ingest/complete`
- Auth: HTTP bearer

Checks each chunk is in storage with its size, and catalogues it in the account. Only acknowledged chunks are the account's to keep; the computer keeps the rest and tries again.

## Request body

- object
  - `deviceId` string, required
  - `chunks` object[], required
    - `name` string, required
    - `size` integer, required
    - `sha256` string, required
    - `firstUs` integer, required
    - `lastUs` integer, required

## Response `200`

Which chunks the account keeps, and which it did not find

- object
  - `acknowledged` string[], required
  - `missing` string[], required

## Other responses

- `400`: Not chunks this computer stored
- `401`: Not signed in
- `503`: Accounts are not set up here

---

[API](https://skmtc.dev/uxduck/apis/uxduck-api.md) - [All operations](https://skmtc.dev/uxduck/apis/uxduck-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uxduck/apis/uxduck-api/revisions/d594d81b2806?raw)
