Skip to main content

storeOriginal

BooleanWrapper storeOriginal(SettingsRequestDto)

PUT /api/2.0/files/storeoriginal

Change the ability to upload original formats

Stores whether the caller's uploads keep the original file when the portal converts them into an editable format, and returns the value that is now stored. With set=true the converted document is saved as a new file next to the upload, so both the original and the converted copy stay in the folder; with set=false the conversion replaces the uploaded file with a new version of it whenever the caller may edit that file. The setting belongs to the calling account alone: every authenticated role down to a guest may change its own copy, and an unauthenticated caller is refused. It applies to conversion on upload and to PUT api/2.0/files/file/{fileId}/checkconversion, not to files already stored. The value is published as storeOriginalFiles by GET api/2.0/files/settings, which is the only way to read it back. The change is recorded in the portal audit trail.

Parameters​

NameInTypeDescriptionNotes
SettingsRequestDtobodySettingsRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200true if the original file is kept when an upload is convertedBooleanWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

BooleanWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json