---
title: "Updates the existing Connect OAuth configuration for the account."
method: PUT
path: "/v2.1/accounts/{accountId}/connect/oauth"
tags: ["ConnectConfigurations"]
---

# Updates the existing Connect OAuth configuration for the account.

`PUT /v2.1/accounts/{accountId}/connect/oauth`

## Request

- Base URL: `https://www.docusign.net/restapi`
- URL: `https://www.docusign.net/restapi/v2.1/accounts/{accountId}/connect/oauth`
- Auth: none declared

## Path parameters

- `accountId` string, required

## Request body

- ConnectOAuthConfig: A complex object describing a Connect OAuth configuration.
  - `authorizationServerUrl` string: The token URL for your authorization server or OAuth service. This property is required.
  - `clientId` string: The client ID assigned to your app by your authorization server or OAuth service. This property is required.
  - `clientSecret` string: The secret value provided by your authorization server. This property is required.
  - `customParameters` object
  - `scope` string: The scopes that your app will request from the authorization server. This property is optional. **Note:** If you are using Azure, this value is the application ID URI of the secified resource affixed with the `.default`. For example: `api://{{clientId}}/.default`

## Response `200`

Successful response.

## Other responses

- `400`: Error encountered.

## Changes

- **2023-02-14** (v2) `9e4f1ec84670`: 1 info
  - endpoint added
- **2019-07-18** (v2) `8ad1b5a40f1b`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/changes/v2.1/accounts/:accountId/connect/oauth/put.md)

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) - [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
