Invite or revoke model access
layerz_share_modelChanges who can access a model, by op. invite (default): grants email the role viewer (read-only, default) or editor; a registered user gets an active share, an unregistered one a pending invite; both receive an email. revoke: removes the collaborator or pending invite principal_id (an id from the sharing.members of layerz_get_model). Owner-only. The link visibility (invite / public) is changed by the owner in the web app only. No version is persisted. Not advertised to read-only keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | invite (default) | revoke. | invite |
| role | No | `invite`: viewer (read-only, default) or editor. | |
| No | `invite`: the email address to invite. | ||
| model_id | No | Target model UUID. Required for user-scoped API keys; validated against the bound model for model-scoped keys. | |
| principal_id | No | `revoke`: collaborator user id or pending-invite id from `sharing.members`. |