Upload File
Upload a file into a space and return the canonical v2 file resource.
Authentication
AuthorizationBearer
Use Bearer <api-key>.
Query parameters
spaceId
Request
This endpoint expects a multipart form containing a file.
file
File bytes to upload.
metadata
Optional JSON object string with caller-owned file metadata.
name
Optional display filename.
path
Optional relative destination path. Must not be absolute or contain . or .. path segments.
Response
Default Response
contentType
createdAt
id
name
path
sizeBytes
source
Allowed values:
type
downloadUrl
expiresAt
metadata
runId
runtimeId
spaceId

