Skip to Content
Docs

Unshare a resource from this team

DELETE
/api/teams/{team_id}/grants

Allowed with share on the resource — no membership needed, so an owner who left the team can still pull their resource back — or for a team_admin of this team. target_user_id picks one member's grant (absent → the whole-team grant). Identifiers come from query params (some proxies strip DELETE bodies), with a JSON-body fallback.

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 DELETE 'http://localhost:7091/api/teams/string/grants'
Example Response200
Empty