Dezgo
    • 简介
    • 创建预签名上传 URL
      POST
    • 上传文件
      PUT
    • 创建预签名下载 URL
      GET
    • 下载文件
      GET
    • 创建资产
      POST
    • 通过 Id 获取资产
      GET
    • 创建主干任务
      POST
    • 通过Id获取任务
      POST

      创建资产

      开发环境
      http://dev-cn.your-api-server.com
      开发环境
      http://dev-cn.your-api-server.com
      POST
      /assets
      创建资产用于在 Fadr 的数据库中创建资产。资产是存储有关 Fadr 文件存储上的文件信息的数据库对象。创建资产允许您在后续任务(例如词干分离)中使用相应的文件。

      请求参数

      Header 参数

      Body 参数application/json

      示例

      返回响应

      🟢200成功
      application/json
      Bodyapplication/json

      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location 'http://dev-cn.your-api-server.com/assets' \
      --header 'Authorization: Bearer [API Key]' \
      --header 'Content-Type: application/json' \
      --data '{
        "name": "mysong",
        "extension": "mp3",
        "group": "mysong-stems",
        "s3Path": "tmp/62b75fc47a33a800478b8695/mysongmp3-f74bc989-aae6-4581-a225-ec01efa4e741.mp3"
      }'
      响应示例响应示例
      {
          "asset": {
              "name": "string",
              "key": "string",
              "uploadComplete": true,
              "user": "string",
              "fileType": "string",
              "assetType": "string",
              "metaData": {
                  "beats": [
                      "string"
                  ],
                  "length": 0,
                  "sampleRate": 0
              },
              "group": "string",
              "public": true,
              "listed": true,
              "library": true,
              "stems": [
                  "string"
              ],
              "midi": [
                  "string"
              ],
              "revoices": [
                  "string"
              ],
              "tags": [
                  "string"
              ],
              "deleted": true,
              "likeCount": 0,
              "recentLikeCount": 0,
              "viewCount": 0,
              "commentCount": 0,
              "previewConstantBitRate": true,
              "api": true,
              "_id": "string",
              "createdTimestamp": "string",
              "__v": 0
          }
      }
      修改于 2024-04-30 06:11:27
      上一页
      下载文件
      下一页
      通过 Id 获取资产
      Built with