Disconnect an agent from GitHub: uninstall its GitHub App and remove the connection, keeping the App for a later reconnect. When the App was never installed, forget it instead, so the next connect creates a new one (for example in a GitHub organization).
DELETE
/v1/agents/{agent_id}/github
const url = 'https://app.everruns.com/api/v1/agents/example/github';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.everruns.com/api/v1/agents/example/githubParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”agent_id
required
string
Prefixed public identifier
Responses
Section titled “ Responses ”Success
Media typeapplication/json
Result of disconnecting an agent from GitHub.
object
outcome
required
What a disconnect did.
string
Example
{ "outcome": "disconnected"}Agent or GitHub connection not found