---
title: "Upsert Integration Instance Auth Config"
method: PUT
path: "/v1/integration-instances/{integrationInstanceId}/auth-config"
tags: ["Integration Instance Auth Config"]
---

# Upsert Integration Instance Auth Config

`PUT /v1/integration-instances/{integrationInstanceId}/auth-config`

Upserts auth config scoped to the given integration instance.

## Request body

- UpsertIntegrationInstanceAuthConfig
  - `type` 'oauth', required
  - `client_id` string, required — The OAuth client identifier.
  - `client_secret` string, required — The OAuth client secret.
  - `authorization_endpoint` string, uri, required — The URL where users are redirected to authorize access.
  - `token_endpoint` string, uri, required — The URL used to retrieve access tokens.

## Response `200`

A response containing integration instance auth config.

- IntegrationInstanceAuthConfig
  - `type` 'oauth', required
  - `client_id` string, required — The OAuth client identifier.
  - `authorization_endpoint` string, uri, required — The URL where users are redirected to authorize access.
  - `token_endpoint` string, uri, required — The URL used to retrieve access tokens.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

## Changes

- **2025-10-29** `19e869275e28` — 1 warning
  - added the new `type` enum value to the `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2025-08-22** `96118a9cd7f4` — 9 breaking
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterChoiceItem]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterDependentItem]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterMaximumLength]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterMinimumLength]/source` became nullable for the status `400`
  - …5 more
- **2025-08-12** `9ca62eba4eca` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kong/apis/konnect-api/changes/v1/integration-instances/:integrationInstanceId/auth-config/put.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) · [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/konnect-api/revisions/72502a676a92/schema)
