Skip to main content

displayRecent

BooleanWrapper displayRecent(DisplayRequestDto)

PUT /api/2.0/files/displayrecent

Show the Recent section

Stores whether the Recent section is offered to the calling account, and returns the value that is now stored. The setting belongs to that account alone: every authenticated role down to a guest may change its own copy, and an unauthenticated caller is refused. Hiding the section removes it from the list of section roots returned by GET api/2.0/files/@root, and the document editor stops offering the recent-files entry; the section itself keeps being maintained, and GET api/2.0/files/recent still returns its contents. Pass set=true to show it again. The same value is published as recentSection by GET api/2.0/files/settings, which is the only way to read it back. Repeating the call with the same value writes it again and is safe. A new account starts with the section shown. Hiding it neither clears the recent history nor stops it being recorded, so showing the section again brings the same entries back.

Parameters​

NameInTypeDescriptionNotes
DisplayRequestDtobodyDisplayRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200true if the Recent section is offered to the callerBooleanWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The caller is not allowed to change this setting--
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