Share a resource with this team, or change an existing grant's level
POST
Needs share on the resource (the owner, or an editor when the owner
turned on editors_can_share) and membership of the team. The grant
records the real owner as owner_id and the caller as granted_by.
Not available to personal access tokens; call it from a signed-in session.
bearerheader
AuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
team_id*stringSuccess
curl -X POST 'http://localhost:7091/api/teams/string/grants'Example Response200
Empty
List the teams the caller belongs to, each annotated with their role GET
[Personal access token](/API/personal-access-tokens) scope: `teams:read`.
Add a member by email (preferred) or raw user_id POST
Requires team_admin. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.