---
title: "Refresh Connection"
method: POST
path: "/api/v1/dbt/cloud/connections/{connection_id}/refresh"
tags: ["DBT_CLOUD", "dbt_cloud"]
deprecated: true
---

# Refresh Connection

`POST /api/v1/dbt/cloud/connections/{connection_id}/refresh`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/api/v1/dbt/cloud/connections/{connection_id}/refresh`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

> **Deprecated.**

Re-discover projects and environments from dbt Cloud.

Use this to sync new projects/environments that were added in dbt Cloud.

## Path parameters

- `connection_id` integer, required

## Response `200`

Successful Response

- DbtCloudDiscoveryResponse: Response after discovering projects/environments.
  - `connection_id` integer, required
  - `projects_discovered` integer, required
  - `environments_discovered` integer, required
  - `projects` DbtCloudProjectResponse[], required
    - `id` integer, required
    - `external_project_id` string, required
    - `project_name` string, nullable, required
    - `dbt_core_integration_id` integer, required
    - `is_enabled` boolean, required
    - `created_at` string, date-time, required
    - `last_modified_at` string, date-time, required
    - `environments` DbtCloudEnvironmentResponse[], nullable
      - `id` integer, required
      - `external_environment_id` string, required
      - `environment_name` string, nullable, required
      - `environment_type` string, nullable, required
      - `dbt_core_integration_environment_id` integer, required
      - `is_enabled` boolean, required
      - `last_processed_run_finished_at` string, date-time, nullable, required
      - `created_at` string, date-time, required
      - `last_modified_at` string, date-time, required
      - `processed_runs_count` integer, nullable

## Other responses

- `400`: Bad request
- `403`: Forbidden
- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
