Genie access grants
List Genie access grants
Who holds a role on a Genie: the users and groups its sharing dialog lists, as Set a Genie access grant sets them.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
genie_id*stringThe Genie.
uuidregion*RegionsRegion of the genie: besg (Europe) or usnv (United States)
"besg""usnv"OK
application/json- response
data*array<>curl -X GET 'https://api.stacksync.com/v1/workspaces/0/genies/497f6eca-6276-4993-bfeb-53cbbbba6f08/access-grants?region=besg'{ "data": [ { "principal": { "type": "user", "id": "<id>" }, "role": "<role>" } ]}DELDelete a Genie task
Deletes a Genie task and its queued run.
POSTSet a Genie access grant
Gives a user or a group a role on a Genie (operator uses it, editor changes it, owner manages its access), changes it, or removes it (role null). Who may change access is decided per genie, as in the web app: an owner of the genie, or a workspace admin adding an owner. A genie always keeps one owner.