Files
Change filename visibility for an existing file
Choose whether the file's existing filename appears in its canonical URL. The stored filename, download filename, file bytes, file_id, expiry, and upload usage do not change. Showing the filename preserves the previous opaque URL. Hiding the filename revokes the previous filename-visible URL.
patch/v1/files/{file_id}
Request
- Base URL: https://filepost.dev (the document declares no server; this is the origin it was published from)
- URL: https://filepost.dev/v1/files/{file_id}
- Auth: none declared
Path parameters
file_idstring required
Headers
X-API-Keystring nullable
Request body
Example request
{
"filename_mode": "public"
}Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.