文件快传

2022-08-30
暂无评分

文件快传

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

Parameters

NameInTypeRequiredDescription
workspace_idpathstringtrue工作空间id
x-auth-tokenheaderstringtrue访问令牌
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.MediaFilefalsenone文件关联的扩展属性
fingerprintstringtruenone文件指纹
namestringfalsenone文件的名称
pathstringfalsenone文件的业务路径

media.MediaFile

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

Properties

NameTypeRequiredRestrictionsDescription
drone_model_keystringfalsenone飞机产品枚举值
is_originalbooleanfalsenone是否为原图
payload_model_keystringfalsenone负载产品枚举值
tinny_fingerprintstringfalsenone精简指纹
snstringfalsenone设备序列号