Media Fast Upload

2022-06-23
No Rating

Media Quick Upload

POST /media/api/v1/workspaces/{workspace_id}/fast-upload

Parameters

NameInTypeRequiredDescription
workspace_idpathstringtrueworkspace id
x-auth-tokenheaderstringtrueaccess token
bodybodymedia.FastUploadInputtruebody

Responses

StatusMeaningDescriptionSchema
200OKopen in new windowOKmedia.FastUploadOutput

Example responses

{
	"code":0,
    "message":"success",
   	"data":{}
}

Schemas

media.FastUploadInput

{
  "ext": {
    "drone_model_key": "string",
    "is_original": true,
    "payload_model_key": "string",
    "tinny_fingerprint": "string",
    "sn": "string"
  },
  "fingerprint": "string",
  "name": "string",
  "path": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
extmedia.MediaFilefalsenoneextended attributes for file associations
fingerprintstringtruenonefile fingerprint
namestringfalsenonefilename
pathstringfalsenonethe business path of the file

media.MediaFile

{
  "drone_model_key": "string",
  "is_original": true,
  "payload_model_key": "string",
  "tinny_fingerprint": "string",
  "sn": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
drone_model_keystringfalsenonedevice product enum
is_originalbooleanfalsenonewhether is the original image
payload_model_keystringfalsenonepayload product enum
tinny_fingerprintstringfalsenonetiny fingerprint
snstringfalsenoneserial number