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>",
"size": 123,
"md5_checksum": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "<string>",
"type": "user",
"object": "identity"
},
"object": "file",
"tags": {},
"duration_seconds": 123
}
}
]
}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>",
"size": 123,
"md5_checksum": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "<string>",
"type": "user",
"object": "identity"
},
"object": "file",
"tags": {},
"duration_seconds": 123
}
}
]
}List of files to import from cloud storage
All files imported successfully
Results for each file import attempt
Show child attributes
The status of the upload attempt
SUCCESS, FAILED_FILE_DOES_NOT_EXIST, FAILED_INVALID_PERMISSIONS, FAILED_UNKNOWN_ERROR The file object (full File for success, minimal _FailedFile for failures)
Show child attributes
"file"