---
title: "Update an existing connection"
method: PATCH
path: "/consumers/{consumer_id}/connections/{connectionid}"
tags: ["Connections"]
---

# Update an existing connection

`PATCH /consumers/{consumer_id}/connections/{connectionid}`

Returns the url that can be used by your client to update the connection

## Path parameters

- `consumer_id` string, uuid, required
- `connectionid` string, uuid, required

## Request body

- PatchConnectionItem
  - `redirect` boolean, nullable — Indicates whether you want to return to the consumer's redirectUrl after update (true) or whether you want to return on the connection page (false)
  - `name` string, nullable — Can be used to update the name of an existing connection
  - `credentials` CredentialItem[], nullable — Can be used to update the credentials of an existing connection. Please use the getIntegrations route to see the available credentials for each integration. Note: The preferred approach to let a consumer change their credentials is to call this endpoint without passing credentials in the body of the request, which will return a link that can be reshared with the consumer to update their credentials through the Chift UI.
    - `key` string, required
    - `value` string, required

## Response `200`

Successful Response

- LinkItem
  - `url` string, required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/chift/apis/chift-api.md) · [All operations](https://skmtc.net/chift/apis/chift-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chift/chift-api/revisions/b5f1214a482a/schema)
