Connections

Rename a connection

Changed on

Set a nickname for a connection, so several accounts of the same app are tellable apart ("work gmail" vs "support gmail"). Send an empty string to clear it and fall back to the provider's own label. Only app connections can be renamed; every other family takes its name from a record the provider owns.

patch/connections/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

Unified public connection id, as returned by GET /connections/connected. Opaque — pass it back verbatim.

Request body

object required
nickname, string required

The name to show for this connection. Empty clears it.

Response

The renamed connection

Connection required
object, string required
id, string required
kind, string required
provider, string required
app, string required
app_name, string nullable required
label, string nullable required
status, 'pending' | 'off' | 'reconnect_required' | 'error' | 'active' required

pending: setup never finished. off: switched off on the account. reconnect_required: its sign-in or key stopped working; connect it again. error: the provider refuses it for a reason reconnecting won't fix (see status_detail). active: usable.

status_detail, string nullable required

Why it isn't active, in the provider's words, when the provider gives a reason.

disconnectable, boolean required
callable, boolean required
access, string required
members, string[] nullable required
connected_at, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    7 more changes in this revision