Browse the API reference

Delete Connection

delete/v1/graphs/{graph_id}/connections/{connection_id}

Part of Connections.

Removes the connection and revokes credentials. Imported data is preserved in the graph. Requires admin role. disposition=sever (QuickBooks only) is the cutover to native books: the chart QuickBooks created becomes the tenant's own and QuickBooks can never resume over it; the default disconnect keeps the connection reconnectable.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
graph_idrequiredstringGraph Id
connection_idrequiredstringConnection identifier

Query parameters

NameTypeDescription
dispositionoptionalstring`disconnect` (default): soft-delete; a later re-OAuth to the same realm revives the connection. `sever`: the native-accounting cutover — QuickBooks only; the chart it created is stamped native-owned, write_policy drops to native, and the connection is never revived.

One of: disconnect, sever

Default: "disconnect"

Example request

curl
curl -X DELETE "https://api.robosystems.ai/v1/graphs/{graph_id}/connections/{connection_id}" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY"

Responses

200 Successful Response

FieldTypeDescription
successoptionalboolean

Indicates the operation completed successfully

Default: true

messagerequiredstring

Human-readable success message

dataoptionalobject

Optional additional data related to the operation

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error