Stop sharing an app connection with a workspace, or take back one API key's grant [write]

Changed on

app:<slug> only (422 not_shareable otherwise); the same fields as sharing, in the query. Without api_key, workspace's sessions lose your connection of that app at once, as DELETE /universes/{slug}/connections/{id}. With api_key (a key id of the request's workspace, which workspace must name), that key can no longer call through it, as DELETE /connectors/connections/{id}/grants; all_api_keys=true takes back the grant to every key of that workspace. The connection itself stays connected. connection_id when you have several (else 409 connection_required); a workspace owner or admin may name another member's connection shared with workspace. 404 when it was not shared there. A workspace key is 403 person_required.

delete/plugins/{name}/share

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/plugins/{name}/share
  • Auth
    HTTP bearer

Path parameters

namestring required

Query parameters

workspacestring required

The workspace slug it is shared with

api_keystring

The API key id it was granted to, instead of the whole workspace

all_api_keysboolean

true: the grant to every API key of the workspace

connection_idstring

Which connection of that app

Response

No longer shared

plugin_idstring required
unshared'workspace' | 'api_key' | 'all_api_keys' required
workspacestring
api_keystring
connection_idstring required

Changes