Prepare upload part
Get a short-lived URL for one part. Identical preparation refreshes an expired URL. Returns 201.
POST
/v1/knowledge-base/uploads/{uploadId}/partsAuthorization
Authorizationstringrequired
Send a Modaic bearer token in the Authorization header.
Parameters
uploadIdUUIDrequired
Upload session ID.
workspacestring
Workspace slug. Omit to use the authenticated account workspace.
partNumberintegerrequired
1–128, numbered in file order.
sha256stringrequired
Part SHA-256, 64 lowercase hex characters.
sizeBytesintegerrequired
1–67108864 bytes. Every non-final part must be exactly 67108864 bytes; only the final part may be shorter.
Response
partNumberinteger
uploadUrlURL
PUT the raw part bytes to this URL.
methodPUT
headersobject
Send exactly the supplied upload headers. Treat Authorization as secret.
expiresInnumber
URL lifetime in seconds.
The PUT response supplies a receipt. Send it to confirm part. Do not send your Modaic API key to the upload URL.
Was this page helpful?