Deposit
A deposit session against an RO-Crate.
A deposit is opened against a new RO-Crate (POST /deposits) or an existing one (POST /ro-crate/{id}/deposits), staged with a metadata document and files, then finalised. Deposits are single-use: once complete they are finished, and further changes open a new deposit.
Server-minted opaque identifier for this deposit.
dep_8f14e45fA URI-based identifier, used to reference the entity or file in the RO-Crate. This ensures global uniqueness and enables cross-linking of entities.
https://catalog.paradisec.org.au/repository/NT1/001The deposit's lifecycle state. open - accepting staging calls; finalising - a finalise is in progress and staging calls are rejected with 409; complete - the RO-Crate's new version is published (terminal); aborted - explicitly aborted or expired, staged content discarded (terminal). A failed finalise returns the deposit to open with the failure recorded in errors.
Possible values: [open, finalising, complete, aborted]
openWhen the deposit was created. This is also the moment the carry-forward baseline is pinned for update deposits.
files object[]
The files staged in this deposit, with per-file upload status. Status MAY be updated eagerly or lazily; finalise is the authoritative verification point.
The file entity's @id in the deposited metadata document. For attached files this is the crate-relative path.
NT1-001-001A.mp3pending - staged in presigned mode and the bytes have not (yet) been observed; received - the bytes are held. Finalise remains the authoritative verification point.
Possible values: [pending, received]
receivedThe file's size in bytes, where declared or known.
Possible values: >= 0
2048576errors object[]
The violations recorded when the most recent finalise failed and the deposit returned to open. Cleared when the next finalise is accepted; absent when there has been no failure.
The field or file the violation concerns
Validation error message
The invalid value
{
"depositId": "dep_8f14e45f",
"roCrateId": "https://catalog.paradisec.org.au/repository/NT1/001",
"state": "open",
"createdAt": "2024-07-29T15:51:28.071Z",
"files": [
{
"fileId": "NT1-001-001A.mp3",
"status": "received",
"size": 2048576
}
],
"errors": [
{
"field": "NT1-001-001A.wav",
"message": "staged file bytes not received"
}
]
}