---
title: "Refresh connection metadata"
method: POST
path: "/v1/connections/:connection_key/refresh_metadata"
---

# Refresh connection metadata

`POST /v1/connections/:connection_key/refresh_metadata`

Trigger a refresh of the connection metadata (for example, dbt manifests). The refresh operation may take several minutes to complete, depending on the size of the metadata artifacts. If a branch name is not specified, the metadata will be updated from the default branch.

## Path parameters

- `connection_key` string, required

## Query parameters

- `branch` string

## Response `200`

Successful response

- SuccessResponse — Base response envelope for all successful API responses.
  - `success` true, required
  - `request_id` string, required

## Other responses

- `4XX` — Client error. Possible status codes include: 400 (invalid request), 401 (missing or invalid API key), 403 (insufficient permissions), 404 (resource not found), 429 (rate limit exceeded).
- `5XX` — Internal server error.

---

[API](https://skmtc.net/count/apis/count-public-api.md) · [All operations](https://skmtc.net/count/apis/count-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/count/count-public-api/versions/858ed44750ff/schema)
