Make a bulk download public or private (JSON Merge Patch).
PATCH/api/v1/bulk-downloads/{bulk_download_id}documents:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | documents:write |
| 非同期 | いいえ |
| MCP ツール | update_bulk_download |
| Portal の権限 | edit_bulk_download_bundles |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
bulk_download_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | BulkDownloadPatchInput |
application/merge-patch+json | BulkDownloadPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json BulkDownload または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
BulkDownload
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
bulk_download_id | string | 必須 | |
can_download | boolean | 必須 | Whether the file is finished and in storage: GET its download-url. |
created_at | string (date-time) または null | 必須 | |
description | string または null | 必須 | |
error | string または null | 必須 | |
filename | string または null | 必須 | The name the file is saved under. |
is_public | boolean | 必須 | Whether anyone with public_link can download the file without signing in. |
public_link | string または null | 必須 | The absolute public link while is_public is true; null otherwise. |
size_bytes | string または null | 必須 | The stored file's size; null until the file exists. |
state | string | 必須 | in_progress, completed or failed (open). |
status | string | 必須 | The Download Manager's own status text: Retrieving data, Generating Files, Creating Zip File, Uploading File, Completed, Failed, No rows to export (open). |
updated_at | string (date-time) または null | 必須 |
BulkDownloadPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
bulk_download_id | string または null | 任意 | |
can_download | boolean または null | 任意 | |
created_at | string (date-time) または null | 任意 | |
description | string または null | 任意 | |
error | string または null | 任意 | |
filename | string または null | 任意 | |
is_public | boolean または null | 任意 | true makes the file downloadable by anyone with public_link (a new link is made); false closes the link. |
public_link | string または null | 任意 | |
size_bytes | string または null | 任意 | |
state | string または null | 任意 | |
status | string または null | 任意 | |
updated_at | string (date-time) または null | 任意 |