全新司空 2 OpenAPI V1.0(openapi-translation)
  1. Open modeling
全新司空 2 OpenAPI V1.0(openapi-translation)
  • Root Directory
    • Authentication and Authorization
      • Authentication Authorization Tutorial
    • System Services
      • FlightHub 2 Public Cloud Access Point Information
      • Query FlightHub 2 System Status
    • Organization Projects
      • Organization Project Tutorial
      • Get the List of Projects Under the Organization
      • Get the List of Devices Under the Organization
      • Get the List of Devices Under the Project
      • Obtain the storage upload credentials for the project
      • Add Members to the Project
    • Livestream Management
      • Live streaming management tutorial
      • Push Livestream
        • Enable Livestream
      • Stream forwarding (only supports private cloud)
        • Stream Forwarding Error Code
        • Create Stream Forwarder
        • Enable/Disable Stream Forwarder
    • Annotation Management
      • Annotation management tutorial
      • Create Map Annotations
    • Task Management
      • Task management tutorial
      • Create Flight Tasks
      • Update Flight Task Status
      • Get the Flight Task List
      • Get Media Files Generated by the Flight Task
      • Get Flight Trajectory Information
    • Device Management
      • Device management tutorial
      • Get Device Properties
      • Get HMS Information
      • Switch Dock Cameras
      • Switch Aircraft Cameras
      • Custom Network RTK Calibration
      • Specify device to enter relay frequency pairing mode (only supports private cloud and relay)
      • Query relay frequency pairing result (only supports private cloud and relay)
    • Route Management
      • Route management tutorial
      • Flight Route Upload Completion Notification
      • Get the List of Flight Routes Under the Project
      • Get Flight Route Details
    • Model Management
      • Model management tutorial
      • Model reconstruction coordinate system
      • Get the List of Models Under the Project
      • Mapping
      • Get the Model Details
      • Get Model File Download URL
    • Open modeling
      • Open modeling tutorial
      • Model Reconstruction Error Code
      • Algorithm parameter introduction
      • Get upload credential
        POST
      • Upload callback
        POST
      • Get resource details
        GET
      • Delete resource
        DELETE
      • Start reconstruction task
        POST
      • Stop reconstruction task
        POST
      • Get the Model Details
        GET
      • Delete Models
        DELETE
  • Get the Stream Transcoder List
    GET
  • Send Real-Time Control Command
    POST
  • Delete Stream Forwarder
    DELETE
  • Acquire Control
    POST
  • Release Control
    DELETE
  • Video Transmission Quality Settings
    PUT
  • Get the Flight Task Information
    GET
  1. Open modeling

Upload callback

开发中
POST
/openapi/v0.1/open_model/stores/upload_callback
Upload callback, used to notify which file resources need to be copied after uploading files
Note
etag is a hash value assigned to a file by the storage bucket, used to verify file integrity
Get example (Go code)

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "resource_uuid": "69e49a97-6a02-4638-b1b5-b9e871b6c51e",
    "resource_name": "Test",
    "callback_param": "Q1g0Mm1uOUR6ZUJnMlkzb29vUmE0dmNWdnh0b1M1eis0d3B2c0paQmsrUURmT0Z5dHVLblBjbVllYlZ3cnovbE5ZdHRqM2VjMWxDTUwzYVJCTFk0N3JTRjg2anc0aklVMEZ5U0FUdUNCbThqNDJMNEdPRkgvMzZBRWZNZDluZHJGNDJWMGxjUHFUMlk1bG9uNVN5eDZON2l5K0NVZUJGZ3Jrdyt5QTB5RXp1eWJESWZqdG5HeGp5QkF2WnRHTFpZc0thVWtTL1I1eVp5M0UrS0VvMGVpTVlLUGpvUzhiUlo4dE1rMk1PY2lUZz0=",
    "files": [
        {
            "name": "DJI_20250721120152_0025_V.jpeg",
            "etag": "69922E94721B338B174C219542370E8E"
        },
        {
            "name": "DJI_20250721120153_0026_V.jpeg",
            "etag": "60C05FF3D620ADA0365F3427F2A43FA7"
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.1/open_model/stores/upload_callback' \
--header 'X-Request-Id: {{$string.uuid}}' \
--header 'X-Language: zh' \
--header 'X-Project-Uuid: {{X-Project-Uuid}}' \
--header 'X-User-Token: {{x-user-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "resource_uuid": "69e49a97-6a02-4638-b1b5-b9e871b6c51e",
    "resource_name": "Test",
    "callback_param": "Q1g0Mm1uOUR6ZUJnMlkzb29vUmE0dmNWdnh0b1M1eis0d3B2c0paQmsrUURmT0Z5dHVLblBjbVllYlZ3cnovbE5ZdHRqM2VjMWxDTUwzYVJCTFk0N3JTRjg2anc0aklVMEZ5U0FUdUNCbThqNDJMNEdPRkgvMzZBRWZNZDluZHJGNDJWMGxjUHFUMlk1bG9uNVN5eDZON2l5K0NVZUJGZ3Jrdyt5QTB5RXp1eWJESWZqdG5HeGp5QkF2WnRHTFpZc0thVWtTL1I1eVp5M0UrS0VvMGVpTVlLUGpvUzhiUlo4dE1rMk1PY2lUZz0=",
    "files": [
        {
            "name": "DJI_20250721120152_0025_V.jpeg",
            "etag": "69922E94721B338B174C219542370E8E"
        },
        {
            "name": "DJI_20250721120153_0026_V.jpeg",
            "etag": "60C05FF3D620ADA0365F3427F2A43FA7"
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "message": "",
    "data": {
        "resource_uuid": "69e49a97-6a02-4638-b1b5-b9e871b6c51e",
        "upload_count": 2
    }
}
修改于 2026-01-22 03:41:09
上一页
Get upload credential
下一页
Get resource details
Built with