# Update upload visibility

Tool: `veryfront__update_upload_visibility`

Set an upload's or folder's visibility to project, public or private. Requires project.uploads.admin.

## Arguments

| Name                | Type                  | Required | Description                                                                                                                                                                                               |
| ------------------- | --------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `upload_path`       | string · min length 1 | Yes      | Project-relative upload path or folder prefix, not URL-encoded. An existing folder also matches without its trailing slash.                                                                               |
| `visibility`        | string                | Yes      | Visibility to store for the path: project means project members, public means anyone and private means granted users only; public follows the paid-project policy. One of `project`, `public`, `private`. |
| `project_reference` | string                |          | Project UUID, slug or configured domain; optional when the selected context supplies a project.                                                                                                           |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_upload_visibility",
    "arguments": {
      "upload_path": "string",
      "visibility": "project"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"path\":\"string\",\"visibility\":\"project\"}"
      }
    ],
    "structuredContent": {
      "path": "string",
      "visibility": "project"
    }
  }
}
```
