Removing User Permission
In order to remove the users access to data stored within ReLLM you need to utilize the permissions delete api.
- URL: https://rellm.ai/api/permission (opens in a new tab)
- Method: DELETE
- Headers:
- Authorization: Bearer "Your api token"
- data:
- user_id: string representation of your user, ie: user id
- permission: arbitrary permission bit to grant access to
JS Package
import ReLLM from "rellm";
const rellm = new ReLLM(process.env.RELLM_API_KEY)
rellm.deletePermission(user_id, permission)