---
title: "PUT Update credentials for a custom auth connection"
description: "Update credentials for a custom auth connection"
last_updated: "2026-05-06T07:33:48.033855+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/connections/updatecredentials"
---

<APIEndpoint
  method={"PUT"}
  path={"/integrations/connections/:id/credentials"}
  summary={"Update credentials for a custom auth connection"}
  description={"Update credentials for a custom auth connection"}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"id","in":"path","required":true,"description":"The ID of the connection","schema":{"type":"string"}},{"name":"organizationId","in":"query","required":true,"description":"The ID of the organization","schema":{"type":"string"}}]} />

## Request Body

New credentials to update

<APIRequestBody
  contentType={"application/json"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Success indicator"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Bad request (e.g., organizationId required, OAuth integrations not supported, validation failed)"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"404"}
  description={"Connection or provider not found"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"PUT"}
  path={"/integrations/connections/:id/credentials"}
  parameters={[{"name":"id","in":"path","required":true,"description":"The ID of the connection","schema":{"type":"string"}},{"name":"organizationId","in":"query","required":true,"description":"The ID of the organization","schema":{"type":"string"}}]}
  requestBody={{"contentType":"application/json","required":true,"description":"New credentials to update","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
