documents[]
array:
These are dedicated tiles on the teardown detail page. Uploading to a
slot also appends the URL to the generic
documents[] array so it
appears both in the slot card AND in the “Documents” section.
Upload to a slot
Path parameters
One of
harvest-list, occm, aircraft-details,
non-incident-statement. URL-safe hyphens; the DB column has
underscores (we translate).Headers
Form fields
Optional. Same shape as the generic-document audience field. See
audience.
File rules
Same as the generic document upload max 50 MB, PDF / XLSX / XLS / DOCX / DOC / CSV / images.What it writes
- The matching column on the teardown row is set to the new URL (overwriting any previous slot value).
- The URL is also appended to
teardowns.documents[]. - If
audiencewas sent and is different from the teardown’s current audience, it’s applied + audited. - The file lands in storage at
teardowns/<teardown_id>/<doc_type>/<8-hex>_<filename>.
documents[] until you delete it
explicitly. (Most partners run a Clear → Upload sequence.)
Response
200 OK:
Clear a slot
- Sets the named column on the teardown to NULL (the UI slot card becomes blank).
- Removes the URL from
teardowns.documents[]. - Best-effort deletes the underlying storage file.
200 {"status": "ok"} without writing anything.
Path parameters
Response
200 OK:
Audit trail
Each slot upload writes one audit row:teardown.harvest_list.uploaded(or the matching field name) with metadata containing filename, size, URL.
teardown.harvest_list.removed(or the matching field name) with metadata containing the removed URL.
See also
- Teardown documents for the generic (non-slot) document endpoints.
- Audience for the visibility behaviour of the
optional
audienceform field.

