Export the file accessible by the public link to the external type for folder
note
[Since 2021.04]
A request to export with conversion or print file public link for folder.
POST /api/v1/public/{linkUid}/{fileId}/syncExport HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
linkUid | The UID of the link. |
fileId | The id of the file. |
- Request parameters
| Parameter | Description |
|---|---|
mediaType | Target Media type. |
download | The mark to set content disposition, true = inline, false = attach |
accessToken | The access token for file |
locale | Locale |
timezoneOffsetMins | Timezone to be used during the conversion process. [Since 2017.03] |
- Example request
curl 'http://localhost:8080/api/v1/public/7541ed87-b2c0-4856-8ba3-435f79e60c22/189406752/syncExport' -i -X POST \
-H 'X-co-auth-token: c6cec2eaa0fb7558fad27d15995d643d' \
-d 'mediaType=application%2Fpdf&download=false&accessToken=wjwijlsnisoaysgogvlccjkzlmlsflxa&locale=Ru-ru&timezoneOffsetMins=-180'
- Example response headers
HTTP/1.1 200 OK
X-co-request-id: 694533504b59436a476f314639445647
Content-Disposition: inline
ETag: W/"e0e102b9ff40785fac8902d8bcbf2279"
Content-Type: application/pdf
Content-Length: 9162
[ content of the response is skipped ]