Skip to content
OperadeDocs

Search documentation

Type to search documentation.

Documentation
Copy page
Open raw Markdown

Revoke a Google Sheets connection

Attempt remote revocation when possible, then synchronously mark the local connection revoked and destroy access and refresh token ciphertext before returning 204.

Endpoint

POST/api/v1/workspaces/{workspace_id}/google-sheets/connections/{connection_id}/revoke

Authentication

Operation classAuthenticationMinimum roleAPI key
dashboard-session-apiDashboard session cookie; POST mutations also require X-CX-Request: 1.adminNot allowed

Parameters

NameInTypeRequiredDescription
workspace_idpathstringYes—
connection_idpathstringYes—

Request body

This operation has no request body.

Example

cURL
curl --request POST 'https://operade.ai/api/v1/workspaces/ws_demo/google-sheets/connections/gconn_example/revoke' --cookie 'cx_session=YOUR_SESSION_COOKIE' --header 'X-CX-Request: 1'

Responses

StatusDescriptionContent
4XXHandled client errorapplication/json: ErrorResponse
204Successful ResponseNo body

4XX application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectErrorResponse—NoYes——
errorobjectErrorItem—NoYes——
error.codestring——NoYes——
error.detailsobject——NoNo——
error.messagestring——NoYes——

Response example

HTTP
HTTP 204
This response has no body.

Errors

Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the distributed error index to find each code's canonical domain page.

StatusCodeDescription
401unauthenticatedAuthentication is missing, invalid, or revoked.
403forbiddenOnly a workspace admin or owner can revoke Google connections.
404not_foundThe requested Google connection was not found.
409conflictThe Google connection was already revoked or changed concurrently.
503google_integration_not_configuredThe Google Sheets integration is disabled or incomplete.
On this page
  1. Endpoint
  2. Authentication
  3. Parameters
  4. Request body
  5. Example
  6. Responses
  7. 4XX application/json response schema
  8. Response example
  9. Errors
  10. Related operations