---
title: "Partially update a connected repository for this repository."
method: PATCH
path: "/repos/{owner}/{identifier}/connected/{slug_perm}/"
tags: ["repos"]
---

# Partially update a connected repository for this repository.

`PATCH /repos/{owner}/{identifier}/connected/{slug_perm}/`

Partially update a connected repository for this repository.

## Request body

- ConnectedRepositoryRequestPatch
  - `is_active` boolean
  - `priority` integer — Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first.
  - `target_repository` string, slug — The slug of the target repository to connect to.

## Response `200`

The connected repository was partially updated.

- ConnectedRepository
  - `can_view_target_repository_settings` boolean — Whether the current user has permission to view the target repository's settings. When false, `configured_upstreams` will be empty even if upstreams are configured.
  - `configured_upstreams` ConnectedRepositoryUpstream[] — The upstream sources configured on the target repository, used to display which formats/upstreams the connection exposes.
    - `type` string, nullable — The format/backend slug of the upstream (e.g. 'npm').
    - `upstream_url` string, nullable
  - `created_at` string, date-time — The date and time when the connection was created.
  - `disable_reason` 'N/A' | 'The connection contains a circular reference'
  - `disable_reason_text` string — Human-readable explanation of why this connection is disabled.
  - `is_active` boolean
  - `priority` integer — Repositories are checked in ascending order (starting at 1). If multiple repositories have the same priority, the oldest one is used first.
  - `slug_perm` string, slug
  - `target_repository` string, slug, required — The slug of the target repository to connect to.
  - `target_repository_summary` ConnectedRepositoryTargetSummary
    - `is_private` boolean
    - `is_public` boolean
    - `package_count` integer
    - `size` integer

## Other responses

- `400` — Request could not be processed (see detail).
- `422` — Missing or invalid parameters (see detail).

---

[API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1.md) · [All operations](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudsmith/cloudsmith-api-v1/revisions/4d7879df9b2f/schema)
