Cancel upload
Cancel a pending upload session. Returns the updated session with
status: "cancelled". Repeating cancellation on that session returns the same
state. Processing, completed, failed, or expired sessions cannot be cancelled.
DELETE
/v1/workspaces/{workspace}/uploads/{uploadId}Authorization
Authorizationstringrequired
Send a Modaic bearer token in the Authorization header.
Path Parameters
workspacestringrequired
User or organization workspace slug that owns the resource.
uploadIdUUIDrequired
Upload session ID.
Response
idUUID
Upload ID.
namestring
Reserved resource name.
kinddataset | eval-only-dataset | artifact
Resource kind.
sha256string
Whole-file checksum.
sizeBytesinteger
Whole-file size.
statuspending | processing | completed | failed | cancelled | expired
Use only completed uploads with a non-null result.
partSizeBytesinteger
67108864 (64 MiB).
partsarray
partNumber, sha256, sizeBytes, and uploaded for prepared parts.
resultobject | null
On completion: name, kind, path, sha256, sizeBytes, commitSha.
errorobject | null
Failure code and message.
createdAtdatetime
expiresAtdatetime
Was this page helpful?