---
title: "Set File Visibility"
method: POST
path: "/api/files/{file_id}/visibility"
---

# Set File Visibility

`POST /api/files/{file_id}/visibility`

Toggle 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.

## Path parameters

- `file_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
