Skip to main content

Make a bulk download public or private (JSON Merge Patch).

PATCH/api/v1/bulk-downloads/{bulk_download_id}documents:write

is_public true gives the entry a public link anyone can download from without signing in; false closes it (the old link then answers 404). Making a public entry public again keeps its link. Only your own entries. Needs Edit Bulk Download Bundles, with Share Bulk Download Bundles and Share Documents Externally to make an entry public and Revoke Bulk Download Shares to close a public one. The entry is shown with View Bulk Download Bundles, otherwise the answer is the write receipt.

Scopedocuments:write
AsynchronousNo
MCP toolupdate_bulk_download
Portal permissionsedit_bulk_download_bundles

Parameters​

NameInTypeRequiredDescription
bulk_download_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonBulkDownloadPatchInput
application/merge-patch+jsonBulkDownloadPatchInput

Responses​

StatusDescriptionBody
200Success.application/json BulkDownload or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

BulkDownload​

FieldTypeRequiredDescription
bulk_download_idstringRequired
can_downloadbooleanRequiredWhether the file is finished and in storage: GET its download-url.
created_atstring (date-time) or nullRequired
descriptionstring or nullRequired
errorstring or nullRequired
filenamestring or nullRequiredThe name the file is saved under.
is_publicbooleanRequiredWhether anyone with public_link can download the file without signing in.
public_linkstring or nullRequiredThe absolute public link while is_public is true; null otherwise.
size_bytesstring or nullRequiredThe stored file's size; null until the file exists.
statestringRequiredin_progress, completed or failed (open).
statusstringRequiredThe Download Manager's own status text: Retrieving data, Generating Files, Creating Zip File, Uploading File, Completed, Failed, No rows to export (open).
updated_atstring (date-time) or nullRequired

BulkDownloadPatchInput​

FieldTypeRequiredDescription
bulk_download_idstring or nullOptional
can_downloadboolean or nullOptional
created_atstring (date-time) or nullOptional
descriptionstring or nullOptional
errorstring or nullOptional
filenamestring or nullOptional
is_publicboolean or nullOptionaltrue makes the file downloadable by anyone with public_link (a new link is made); false closes the link.
public_linkstring or nullOptional
size_bytesstring or nullOptional
statestring or nullOptional
statusstring or nullOptional
updated_atstring (date-time) or nullOptional