how to get download URL document with just Given Id in WorkDocs through RestAPI

0

Is there any way to get the download URI of a document Without using version id? I have the Item id of that document but don't have its version id. Is that single rest API that will take the latest version id by default and give the download URL as a response?

已提問 1 年前檢視次數 202 次
1 個回答
1
已接受的答案

Hi,

Retrieving a document download url always requires a version Id.

If you don’t have it, you can find it with below call::

Above call returns a Metadata object which contains the version is (https://docs.aws.amazon.com/workdocs/latest/APIReference/API_DocumentMetadata.html)

Finally use the versionId to download the document. See below example for sdk:

https://docs.aws.amazon.com/workdocs/latest/developerguide/download-documents.html

Hope it helps!

profile picture
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南