メインコンテンツまでスキップ

Make a public download link for a document.

POST/api/v1/documents/{document_id}/permalinksdocuments:download
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Makes a link anyone can open without signing in, for the document's current file, until it expires (expires_in_seconds, 3600 by default as the Portal's). Needs Create Document Permalinks, Share Documents Externally, Download Document Files and Download Original Documents, and read access to the document. The link is shown with View Document Permalinks, otherwise the answer is the write receipt. Every open is counted: list_document_permalinks shows how often. Close a link early with delete_document_permalink. Share the url only with people who may have the file.

スコープdocuments:download
非同期いいえ
MCP ツールcreate_document_permalink
Portal の権限create_document_permalinks, share_documents_externally, download_document_files, download_original_documents

パラメーター​

名前場所型必須説明
document_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonPermalinkCreateInput

応答​

ステータス説明本文
201Success.application/json Permalink または 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
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

フィールド型必須説明
access_countinteger必須How often the link was opened. ≥ -2147483648; ≤ 2147483647
created_atstring (date-time) または null必須
document_idstring必須
expires_atstring (date-time) または null必須
file_namestring または null必須The name the file downloads under.
is_activeboolean必須False once the link was closed. An expired link is still active but opens as 404.
last_accessed_atstring (date-time) または null必須When it was last opened; null if never.
permalink_idstring必須
urlstring必須The link to share: opening it needs no sign-in, until it expires or is closed.

PermalinkCreateInput​

フィールド型必須説明
expires_in_secondsinteger または null任意How long the link works from now, in seconds. The Portal offers 7, 30 or 730 days (604800, 2592000, 63072000). Default 3600.