---
title: "Set a model's sharing config"
method: PUT
path: "/v2/models/{model_id}/sharing"
tags: ["Model Sharing"]
---

# Set a model's sharing config

`PUT /v2/models/{model_id}/sharing`

Persists the project sharing config for a workspace model. Exactly one sharing mode must be set (all_projects / selected).

## Path parameters

- `model_id` string, required

## Request body

- Sharing — Sharing controls which projects in the workspace may use this entity and what they may do with it.
  - `all_projects` SharingAllProjects
  - `selected` SharingSelectedProjects
    - `project_ids` string[] — Projects allowed to use the entity. An empty list shares it with no project.
  - `allow_version_pin` boolean — Consuming projects may pin a specific version instead of tracking latest. Enforcement lives with the consuming reference.
  - `allow_fork` boolean — Projects may duplicate this entity into a detached project-owned copy.
  - `auto_grant_new_projects` boolean — New projects created after this sharing config is applied should receive access automatically. Enforcement lives with project creation and entity-specific adoption code.

## Response `200`

OK

- SetModelSharingResponse
  - `model_id` string
  - `sharing` Sharing — Sharing controls which projects in the workspace may use this entity and what they may do with it.
    - `all_projects` SharingAllProjects
    - `selected` SharingSelectedProjects
      - `project_ids` string[] — Projects allowed to use the entity. An empty list shares it with no project.
    - `allow_version_pin` boolean — Consuming projects may pin a specific version instead of tracking latest. Enforcement lives with the consuming reference.
    - `allow_fork` boolean — Projects may duplicate this entity into a detached project-owned copy.
    - `auto_grant_new_projects` boolean — New projects created after this sharing config is applied should receive access automatically. Enforcement lives with project creation and entity-specific adoption code.

---

[API](https://skmtc.net/orq-ai/apis/orq-ai-api.md) · [All operations](https://skmtc.net/orq-ai/apis/orq-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orq-ai/orq-ai-api/revisions/addad33219df/schema)
