---
title: "Update File Share"
method: PUT
path: "/api/v1/files/{file_id}/share"
tags: ["v1", "File Manager"]
---

# Update File Share

`PUT /api/v1/files/{file_id}/share`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/files/{file_id}/share`
- Auth: none declared

Set the file's Anyone/restricted toggle + the explicit grant list.

## Path parameters

- `file_id` integer, required: files.id

## Request body

- ShareUpdateRequest: Body for PUT .../share. ``grants`` is the full desired explicit grant list (owner/manager rows excluded — those are computed, never sent by the client). The server replaces the existing grant rows wholesale.
  - `is_restricted` boolean, required
  - `grants` ShareGrantInput[]
    - `user_id` integer, required
    - `role` 'viewer' | 'editor'
  - `anyone_role` 'viewer' | 'editor'
  - `acknowledge_self_change` boolean
  - `apply_to_files` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-29** `2e4bc2bfca09`: 1 info
  - added the new optional request property `apply_to_files`

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/files/:file_id/share/put.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
