Skip to Content
Docs

Share a resource with this team, or change an existing grant's level

POST
/api/teams/{team_id}/grants

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.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

team_id*string

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/teams/string/grants'
Example Response200
Empty