Sharing
Update sharing
Replace the visibility and the shared people and teams of a repository, report, playbook, blueprint or session.
PUT
Replaces the resource’s whole sharing state, as the share dialog in the Wordsmith app does. Send the full lists you want, because anyone you omit loses access, the creator included. Repositories, reports, playbooks and blueprints must keep at least one person with
write access. The request and response match Update task sharing.
access_level is read or write. user_id takes a user id, email address, name, or me for your API key’s user, 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 havewrite access to the resource, as the share dialog requires. A session is the exception: only its creator can change its sharing, because write access to a session does not allow it. The creator keeps access without being listed.
Path parameters
One of
repositories, reports, playbooks, blueprints, sessions or envelopes. Tasks keep their own sharing route. envelopes takes native Wordsmith e-signature envelopes only.Body parameters
The complete set of people with access. Anyone omitted loses access. Each entry is
{"user_id": "<user id, email, name or me>", "access_level": "read" | "write"}.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. For an envelope, notices names each person or team just given access who cannot download the signed copy because they cannot open its source documents. Tell the user.
An envelope keeps its sender with write access and has no organisation-wide setting, so visibility must be private. Only the envelope’s sender, or someone who manages all envelopes, can change its sharing, and a person only by name if they are an active member.