Send one part of a STOW upload
put /dicomweb/stow-uploads/{batchId}/parts/{partNumber}
The raw bytes of one part. Parts may be sent in any order and retried; keep each returned
etag for the complete call.
Scope: stow:write (partner_stow tokens).
Rate limit: 60 requests per minute per token.
Parameters
| Name | In | Description |
|---|---|---|
batchId |
path | The batch ID from the Location header or the upload |
partNumber |
path | 1 to 10000 |
x-pp-upload-id |
header | The uploadId from the start call |
Request body
The part's bytes
application/octet-stream
Responses
200
Part stored
application/json
| Field | Type | Description |
|---|---|---|
partNumber |
integer | |
etag |
string |
{
"partNumber": 1,
"etag": "a1b2c3d4"
}
400
Problem: validation
401
Problem: unauthenticated
403
Problem: forbidden
404
Problem: not-found
411
Problem: length-required
413
Problem: payload-too-large
429
Problem: rate-limited
500
Problem: internal
Errors
| Status | Type | Meaning |
|---|---|---|
| 401 |
unauthenticated
|
Not authenticated |
| 403 |
forbidden
|
Not allowed |
| 500 |
internal
|
Internal error |
| 429 |
rate-limited
|
Rate limited |
| 400 |
validation
|
Invalid request |
| 411 |
length-required
|
Content-Length required |
| 413 |
payload-too-large
|
Body too large |
| 404 |
not-found
|
Not found |
Examples
curl
curl -X PUT 'https://app.pacspilot.com/dicomweb/stow-uploads/01JA2Z6Q7Y9K3M5N8P0R2S4T6V/parts/1' \
-H "Authorization: Bearer $PACSPILOT_TOKEN" \
-H 'x-pp-upload-id: <x-pp-upload-id>' \
-H 'Content-Type: application/octet-stream' \
--data-binary @part-0001.bin
JavaScript
import { readFile } from "node:fs/promises";
const res = await fetch("https://app.pacspilot.com/dicomweb/stow-uploads/01JA2Z6Q7Y9K3M5N8P0R2S4T6V/parts/1", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.PACSPILOT_TOKEN}`,
"x-pp-upload-id": "<x-pp-upload-id>",
"Content-Type": "application/octet-stream",
},
body: await readFile("part-0001.bin"),
});
console.log(res.status, await res.text());
Python
import os
import requests
with open("part-0001.bin", "rb") as f:
data = f.read()
res = requests.request(
"PUT",
"https://app.pacspilot.com/dicomweb/stow-uploads/01JA2Z6Q7Y9K3M5N8P0R2S4T6V/parts/1",
headers={"Authorization": f"Bearer {os.environ['PACSPILOT_TOKEN']}", "x-pp-upload-id": "<x-pp-upload-id>", "Content-Type": "application/octet-stream"},
data=data,
)
print(res.status_code, res.text)