Media

Create a media row

Changed on

Creates a mission_media row and returns it along with a short-lived presigned S3 upload URL the caller uses to PUT the actual object.

post/media

Request

Headers

Idempotency-Keystring uuid

Idempotency key for POST requests. If a transaction with the same key already exists for the org, the server returns the original response without re-executing. Keys are valid for 48 hours.

Request body

missionIdstring uuid required
droneIdstring uuid required

The drone that captured this media.

mediaType'image' | 'video' required
capturedAtnumber required

Unix-ms timestamp when the media was captured.

sizeBytesinteger required

Size of the S3 object in bytes (used by the zip endpoint's progress UI).

Response

Created

transactionIdstring uuid required

Changes

    • breaking

      added the new required request property

    • breaking

      removed the required property ///// from the response with the status

    • warning

      removed the request property

    • info

      added the required property ///// to the response with the status