---
title: "Set the OAuth configurations of the Pack."
method: PUT
path: "/packs/{packId}/oauthConfig"
tags: ["Packs"]
---

# Set the OAuth configurations of the Pack.

`PUT /packs/{packId}/oauthConfig`

Set the OAuth configurations of the Pack, including client id and secret.

## Path parameters

- `packId` integer, required

## Request body

- SetPackOauthConfigRequest — Request to set the Pack OAuth configuration.
  - `clientId` string
  - `clientSecret` string
  - `redirectUri` string

## Response `200`

The updated OAuth configuration.

- PackOauthConfigMetadata — The Pack OAuth configuration metadata.
  - `maskedClientId` string, required — Masked OAuth client id. If not set, empty string will be returned.
  - `maskedClientSecret` string, required — Masked OAuth client secret. If not set, empty string will be returned.
  - `authorizationUrl` string, required — Authorization URL of the OAuth provider.
  - `tokenUrl` string, required — Token URL of the OAuth provider.
  - `tokenPrefix` string — Optional token prefix that's used to make the API request.
  - `scopes` string — Optional scopes of the OAuth client.
  - `redirectUri` string, required — Redirect URI of the Pack.
  - `useDynamicClientRegistration` boolean — Whether this Pack uses Dynamic Client Registration for OAuth.

## Other responses

- `400` — The request parameters did not conform to expectations.
- `401` — The API token is invalid or has expired.
- `403` — The API token does not grant access to this resource.
- `404` — The resource could not be located with the current API token.
- `429` — The client has sent too many requests.

---

[API](https://skmtc.net/coda/apis/superhuman-docs-api.md) · [All operations](https://skmtc.net/coda/apis/superhuman-docs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coda/superhuman-docs-api/versions/c65a8418f3c8/schema)
