Pistis
API referenceSharing

Stop sharing with a person

DELETE
/sessions/{id}/shares/{who}

They lose access at once.

Authorization

bearer
headerAuthorizationBearer <token>

An API token

Path Parameters

id*string

A session id

who*string

Their email, name or principal

Response Body

Revoked

Example Request
curl -X DELETE 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/shares/bob@example.com'
Example Response
Empty