Skip to main content
POST
/
v5
/
files
/
cloud_imports
Import files from existing blob storage in cloud (batch operation)
curl --request POST \
  --url https://api.egp.scale.com/v5/files/cloud_imports \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "files": [
    {
      "container": "<string>",
      "filename": "<string>",
      "filepath": "<string>",
      "file_type": "<string>"
    }
  ]
}'
{
  "results": [
    {
      "status": "SUCCESS",
      "file": {
        "id": "<string>",
        "object": "file",
        "size": 123,
        "md5_checksum": "<string>",
        "filename": "<string>",
        "mime_type": "<string>",
        "tags": {},
        "duration_seconds": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "created_by": {
          "id": "<string>",
          "object": "identity",
          "type": "user"
        }
      }
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Body

application/json
files
CloudImportFileRequest · object[]
required

List of files to import from cloud storage

Response

All files imported successfully

results
FileUploadResult · object[]
required

Results for each file import attempt