dots.v2.harnessRuntime.auth.byProvider().connections.byConnection_id().reconnect.post()

Generated on 25 Nov 2026 from DoTs version v1.27.0

Usage

client.v2.harnessRuntime.auth.byProvider(provider).connections.byConnection_id(connection_id).reconnect.post(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Provider_connection_response>

Description

Resumes a pending connection’s authorization, or starts a new one for an expired or revoked connection. The connection keeps its id, user_id, and scopes, so environments that use it keep working once it is active again. An active connection is returned unchanged. Only the member who owns the connection can reconnect it; for anyone else the response is 404, the same as for an unknown connection. The response includes authorization while the interactive step is outstanding. No token is returned.

Parameters

provider string required

Example: github

Provider key. github is the provider served today.

connection_id string required

Example: 3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c

The connection id.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.harnessRuntime.auth
    .byProvider("github").connections
    .byConnection_id("3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c").reconnect.post();

Response Example

Show Response Example
{
  "connection": {
    "id": "3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c",
    "provider": "github",
    "provider_display_name": "GitHub",
    "user_id": "octocat",
    "status": "active",
    "owning_user_id": "b1c2d3e4-f5a6-7890-abcd-ef1234567890",
    "deletion_protected": false,
    "created_at": "2026-07-27T12:00:00Z",
    "updated_at": "2026-07-27T12:00:00Z",
    "oauth": {
      "scopes": [
        "repo"
      ],
      "granted_at": "2026-07-27T12:00:00Z"
    }
  },
  "authorization": {
    "status": "requires_authorization",
    "connect_url": "https://example.invalid/connect",
    "verification_code": "ABCD-1234",
    "expires_at": "2026-07-27T12:00:00Z"
  }
}

More Information

See /v2/harness-runtime/auth/{provider}/connections/{connection_id}/reconnect in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.