Sharing
Update Sharing
Replace the visibility and the shared people and teams of a repository, report, playbook, blueprint or session.
PUT
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive
403 mcp_not_enabled. See the preview overview.write access. The request and response match Update Task Sharing.
access_level is read or write. user_id takes a user id, email address or name, and team_id takes a team id or team name. A reference that matches more than one record is rejected with a 400 that lists the candidates, so pass the id to disambiguate. A person or team named twice gets the higher access level.
Nothing can be shared outside your organisation or made public.
Assistants change sharing through the MCP tool share_resource, one person or team at a time. This endpoint replaces the whole list in one call.
Authentication
Requires an API key, or an OAuth token with the write scope of the resource type. The caller must also be an admin of the resource, as the share dialog requires. For a session that means its creator:write access to a session does not allow changing its sharing, and the creator keeps access without being listed.
Path parameters
string
required
One of
repositories, reports, playbooks, blueprints or sessions. Tasks keep their own sharing route.string
required
The resource id.
Body parameters
enum
required
Who can see the resource by default:
private or customer.array
The complete set of people with access. Anyone omitted loses access. Each entry is
{"user_id": "<user id, email or name>", "access_level": "read" | "write"}.array
The complete set of teams with access. Any team omitted loses access. Each entry is
{"team_id": "<team id or name>", "access_level": "read" | "write"}. Needs teams to be enabled for your organisation.Response
Returns200 with the new sharing state, in the same shape as Get Sharing.