Skip to main content

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
  1. Path parameters
ParameterDescription
linkUidThe UID of the link.
fileIdThe id of the file.
  1. Request parameters
ParameterDescription
mediaTypeTarget Media type.
downloadThe mark to set content disposition, true = inline, false = attach
accessTokenThe access token for file
localeLocale
timezoneOffsetMinsTimezone to be used during the conversion process. [Since 2017.03]
  1. 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'
  1. 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 ]