---
title: "Change which wallets a connected app may receive payments in"
method: PATCH
path: "/api/v1/oauth2/connections/{id}"
tags: ["Account"]
---

# Change which wallets a connected app may receive payments in

`PATCH /api/v1/oauth2/connections/{id}`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/oauth2/connections/{id}`
- Auth: API key in header `api-key`

Replaces the connection's wallet grant wholesale. Every id must be one of your own active wallets.

## Path parameters

- `id` string, required

## Request body

- object
  - `wallet_ids` string[], required

## Response `200`

OK.

- object
  - `id` string
  - `client_id` string
  - `client_name` string
  - `agent` object, nullable
    - `id` string
    - `username` string
    - `display_name` string
  - `scopes` string[]
  - `last_used_at` string, date-time, nullable
  - `created_at` string, date-time
  - `wallets` object[]

## Other responses

- `401`: Missing or invalid credentials.
- `404`: Not one of your connections.
- `422`: Choose at least one wallet to receive payments this app requests.

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a8b8642ab7f8?raw)
