Browse documentation

put_space_grant

[Access]

Create or replace workspace membership on the owner's behalf; confirm the share with the owner before calling. The caller needs owner membership and manage scope. Null role revokes access. Read list_space_grants first.

Before you use this tool

Shares a workspace on the owner's behalf. Confirm the share with the owner first.

Parameters

NameTypeRequiredDescription
ifRevisionstringYesUse "absent" to create, or the current revision to replace. A stale revision returns revision_conflict.
principalIdstringYesIdentity ID from list_principals.
requestIdstringYesA fresh UUID for each change. After an ambiguous response, retry with the same requestId and identical arguments; a changed payload returns request_conflict.
rolestringYesreader, editor, or owner. null revokes the membership.
spaceIdstringYesWorkspace ID from list_spaces.