Disconnect an integration
DELETE/v1/organizations/:org/integrations/:id
A setup that never connected (still awaiting_deployment, no scopes) collected nothing and is
deleted: afterwards the integration is not found.
Otherwise closes the integration (status cancelled) and stops its scan schedule. A connected
one also has its connector revoked: the connector's credentials stop working and its scopes
become disabled, so nothing is collected from them again. For AWS, collected data
(inventory, findings) is kept; to remove it, delete the connector. For GitHub, what was read
from the repositories (dependencies and their vulnerabilities, secrets, scans) is deleted at
once, and the GitHub App installation is released so it can be linked again.
Disconnecting a closed integration returns it unchanged. Reconnecting means a new
integration. The IAM role, or the GitHub App installation, in the customer's account is
theirs to remove.
Platform staff in a staff access session may remove a setup, but not disconnect what the customer connected.
Request
Responses
- 200
- 403
- 404
- 422
Disconnected
Your role does not allow this action
Not found, or not visible to you
Not possible in the current state