elaichi__template__share
Grant a person, a team, or the whole organization access to a template at one of three levels: "view" (see it), "use" (also stamp a toolbox from it), "edit" (also change it). grantee_id is required when grantee_type is "user" or "team" and must be omitted for "org" — the schema cannot express that conditional, so check it yourself. Re-sharing to the same grantee updates the level rather than adding a second grant; to take access away use template.unshare, which identifies the grant the same way. A template never references a connection, so sharing one never exposes anybody’s credential — contrast toolbox.share, whose response carries a delegation summary. Returns the ACL entry plus { template_id }; for a "user" share the entry also carries grantee: { id, name, email }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Template id (`tpl_…`) from template.list. | |
| level | Yes | "view" = see it, "use" = also stamp a toolbox from it, "edit" = also change it. | |
| grantee_id | No | A USER id (`usr_…`, from member.list) when grantee_type is "user", or a TEAM id (`team_…`, from team.list) when it is "team". Required for both despite not being listed in `required`; omit it entirely for "org". | |
| grantee_type | Yes | Who is being granted access. |