Restore a soft-deleted upload. Requires project.uploads.write.
Arguments
inputRestoreUploadInput!requiredinput.projectReferenceStringProject UUID, slug or configured domain. Omission does not select the context project.
input.uploadReferenceStringUpload UUID selects that exact row; raw project-relative path selects an active row first, otherwise latest deletion then descending UUID. Active rows are rejected. No deletion-age cutoff is enforced; stored content availability is not checked. Requires upload write and path edit access.
input.uploadIdStringAnother spelling of uploadReference. Send one of the two.
Responses
mutation RestoreUpload($input: RestoreUploadInput!) { restoreUpload(input: $input) { success file { id fileId key path name bucket url size contentType status createdAt updatedAt visibility permission } error id path fileName contentType sizeBytes url status visibility createdAt updatedAt deletedAt }}{ "data": { "restoreUpload": { "success": false, "file": { "id": "string", "fileId": "string", "key": "string", "path": "string", "name": "string", "bucket": "string", "url": "https://example.com", "size": 0, "contentType": "string", "status": "string", "createdAt": "string", "updatedAt": "string", "visibility": "string", "permission": "string" }, "error": "string", "id": "string", "path": "string", "fileName": "string", "contentType": "string", "sizeBytes": 0, "url": "https://example.com", "status": "pending", "visibility": "project", "createdAt": "2026-01-01T00:00:00Z", "updatedAt": "2026-01-01T00:00:00Z", "deletedAt": "2026-01-01T00:00:00Z" } }}The RestoreUploadPayload! in data.restoreUpload.