---
title: "Update a single connection"
method: PATCH
path: "/users/{userId}/connections/{connectionId}"
tags: ["user connections"]
---

# Update a single connection

`PATCH /users/{userId}/connections/{connectionId}`

Requires **user:update** scope and for the API client to user their own consent screens i.e. not have Enforce user consent enabled. This endpoint can only currently be used to update the expiresAt field which is the date which the user has consented to.

## Path parameters

- `userId` string, required
- `connectionId` string, required

## Request body

- ConnectionPatch
  - `expiresAt` string, date-time, required — The date to set the connection consent to expire.

## Response `204`

Successful Response

## Other responses

- `400` — Unsuccessful Response - Bad Request - Invalid value
- `401` — Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403` — Unsuccessful Response - Forbidden - Invalid scopes, Insufficient client permissions
- `404` — Unsuccessful Response - Resource Not found

---

[API](https://skmtc.net/moneyhubenterprise/apis/moneyhub-identity-service.md) · [All operations](https://skmtc.net/moneyhubenterprise/apis/moneyhub-identity-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moneyhubenterprise/moneyhub-identity-service/revisions/8841721f7aae/schema)
