# 创建存储对象

# 调用方式: POST

# 接口地址:

https://api.freelog.com/v2/storages/buckets/{bucketName}/objects
1

# URL传入参数说明:

参数 必选 类型及范围 说明
bucketName 必选 string bucket名称,严格模式

# form-data传入参数说明:

参数 必选 类型及范围 说明
objectName 必选 string 存储对象名称,区文件全名
sha1 必选 string 上传文件时服务端返回的sha1值
resourceType 可选 string 资源类型

# 返回说明:

返回值字段 字段类型 字段说明
objectId string 存储对象ID
sha1 string 存储对象的sha1值
objectName string 对象名称
bucketId string 对象所在的bucketId
bucketName string 对象所在的bucket
resourceType string 对象类型
systemProperty object 对象的系统属性
customProperty object 对象的自定义属性

# 示例

{
    "ret": 0,
    "errcode": 0,
    "msg": "success",
    "data": {
        "objectId": "5f55e347b22ee35f340e7816",
        "resourceType": "image",
        "sha1": "edf31f7f2d7814d45d08666c13524bc2de600cb1",
        "objectName": "yuliang-a-3",
        "bucketId": "5f50b0cdf0c6814af84eaa3e",
        "bucketName": "yuliang",
        "userId": 50021,
        "systemProperty": {
            "fileSize": 85199,
            "mime": "image/jpeg",
            "width": 1080,
            "height": 1920,
            "type": "jpg"
        },
        "customProperty": {},
        "dependencies": [],
        "createDate": "2020-09-07T07:37:43.930Z",
        "updateDate": "2020-09-07T07:37:43.930Z"
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25