access
4 endpoints.
get/api/access/grants#
resourceTypestring*folderlistresourceIdstring · uuid*curl https://api.shairelabs.com/api/access/grants?resourceType=folder&resourceId=00000000-0000-0000-0000-000000000000 \
-H "Authorization: Bearer $SHAIRE_TOKEN"resourceTypestring*folderlistresourceIdstring · uuid*privateboolean*effectiveLevelstring*readcommenteditfullgrantsobject[]*[item]objectidstring · uuid*workspaceIdstring · uuid*resourceTypestring*folderlistresourceIdstring · uuid*subjectTypestring*userteamsubjectIdstring · uuid*levelstring*readcommenteditfullcreatedAtstring*inheritedobject[]*[item]objectidstring · uuid*workspaceIdstring · uuid*resourceTypestring*folderlistresourceIdstring · uuid*subjectTypestring*userteamsubjectIdstring · uuid*levelstring*readcommenteditfullcreatedAtstring*fromFolderIdstring · uuid*fromNamestring*put/api/access/grants#
resourceTypestring*folderlistresourceIdstring · uuid*subjectTypestring*userteamsubjectIdstring · uuid*levelstring*readcommenteditfullcurl https://api.shairelabs.com/api/access/grants \
-X PUT \
-H "Authorization: Bearer $SHAIRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"resourceType":"folder","resourceId":"00000000-0000-0000-0000-000000000000","subjectType":"user","subjectId":"00000000-0000-0000-0000-000000000000","level":"read"}'idstring · uuid*workspaceIdstring · uuid*resourceTypestring*folderlistresourceIdstring · uuid*subjectTypestring*userteamsubjectIdstring · uuid*levelstring*readcommenteditfullcreatedAtstring*delete/api/access/grants/{id}#
idstring*curl https://api.shairelabs.com/api/access/grants/$GRANT_ID \
-X DELETE \
-H "Authorization: Bearer $SHAIRE_TOKEN"get/api/access/me#
curl https://api.shairelabs.com/api/access/me \
-H "Authorization: Bearer $SHAIRE_TOKEN"rolestring*owneradminmemberguestunrestrictedboolean*foldersobject*[key: string]stringreadcommenteditfulllistsobject*[key: string]stringreadcommenteditfull