api

Create media record by file name provided

post/api/v2/media

Request

Request body

namestring required

Human readable media title

Example request

{
  "name": "Skin damage media"
}

Response

OK

idstring required
namestring required

Human readable media title

status'REVIEWING' | 'AVAILABLE' | 'QUARANTINE' | 'AWAITING_UPLOADING' required

Captures whether we are currently scanning the media, or whether it is safe or not. Quarantined medias are inaccessible

upload_urlstring required

This link is for file upload using PUT. Lifetime 24h. File limit 4 GB using header: x-goog-content-length-range:0,4000000000

Example response

{
  "id": "059d52b6-b2b0-4bd1-97df-082b1e2196c1",
  "name": "Right ear",
  "status": "AVAILABLE",
  "upload_url": "https://storage.googleapis.com/1512a193-065b-4360-bd1f-48b8a260f140?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=upload-scanner%40serviceaccount.com%2F20211126%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20211126T130011Z&X-Goog-Expires=900&X-Goog-SignedHeaders=content-type%3Bhost&X-Goog-Signature=123"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.