Skip to content

Complete Upload

POST
/api/v1/files/upload/complete
curl --request POST \
--url https://aura.strangeworks.com/api/v1/files/upload/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "deployment_name": "example", "parts": [ { "etag": "example", "part_number": 1 } ], "project_id": "example", "snapshot_id": "example", "source": "deployment", "upload_token": "example" }'
Media typeapplication/json
FileUploadCompleteRequest
object
deployment_name
Any of:
string
parts
Parts
Array<object>
CompletedPart
object
etag
required
Etag
string
part_number
required
Part Number
integer
project_id
Any of:
string
snapshot_id
Any of:
string
source
required
Source
string
Allowed values: deployment workspace snapshot
upload_token
required
Upload Token
string
>= 1 characters

Successful Response

Media typeapplication/json
FileEntry

One file in a container.

content_type/modified/source are populated where the container can supply them: the workspace reads them from its ProjectFile index; deployments and snapshots list straight from storage, so source is null and content_type is derived from the extension.

object
content_type
Any of:
string
modified
Any of:
string format: date-time
path
required
Path
string
size
required
Size
integer
source
Any of:
string
Examplegenerated
{
"content_type": "example",
"modified": "2026-04-15T12:00:00Z",
"path": "example",
"size": 1,
"source": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}