DeluxHostAPI Reference
Storage files

Upload a file chunk

POST
/v1/services/{orderId}/storage/files/upload-chunk

Ownership is checked before file access. Maximum request size 90 MiB including multipart overhead. Use finalize after all chunks; cancel abandons an upload. No username field is accepted: it is derived from ownership.

Authorization

apiToken storage:files:write
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: storage:files:write

Path Parameters

orderId*number

Request Body

multipart/form-data
  1. body
uploadId*string
filename*string
path*string
chunkIndex*string
chunkSize*string
chunk*file
Formatbinary

Response Body

Completed

application/json
  1. response
received?number
bytesWritten?number
recommendedChunkBytes?number
maxChunkBytes?number
curl -X POST 'https://api.deluxhost.net/v1/services/0/storage/files/upload-chunk' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -F 'uploadId=string' \  -F 'filename=string' \  -F 'path=string' \  -F 'chunkIndex=string' \  -F 'chunkSize=string' \  -F 'chunk=@./part.bin'
Example Response
{  "received": 0,  "bytesWritten": 0,  "recommendedChunkBytes": 0,  "maxChunkBytes": 0}