Set File Visibility
Changed onToggle is_public on an existing file the user owns. Body: {"is_public": true|false}. Used when the user retroactively wants to share (or hide) a previously-uploaded figure.
post/api/files/{file_id}/visibility
Request
- Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
- URL: https://api.omicos.cn/api/files/{file_id}/visibility
- Auth: none declared
Path parameters
file_idstring required
Headers
authorizationstring nullable
x-omicos-devicestring nullable
x-omicos-device-kindstring nullable
x-omicos-device-namestring nullable
Request body
object required
Response
Successful Response
object required
Changes
- info
added the new optional
headerrequest parameterx-omicos-device - info
added the new optional
headerrequest parameterx-omicos-device-kind - info
added the new optional
headerrequest parameterx-omicos-device-name
- info