---
title: "Update datasource credentials"
method: PUT
path: "/datasources/{id}"
tags: ["Datasources"]
---

# Update datasource credentials

`PUT /datasources/{id}`

Updates the Authentication credential fields for a datasource as defined in the provider schema. Re-runs the connectivity test before saving. If any linked Digitize services cannot be notified, the datasource is still updated and the failures are listed in propagation_errors.

## Path parameters

- `id` string, required

## Request body

- GithubComProjectAiServicesAiServicesInternalPkgCatalogApiserverModelsUpdateDatasourceRequest
  - `params` object, required — Params holds the credential fields to update. Only fields in the provider's schema whose ui:section is "Authentication" may be changed; structural fields are filtered out server-side. Note: binding:"required" only prevents null/missing — an empty map is rejected in the service layer, which also validates that at least one updatable field is present.

## Response `200`

Datasource updated

- GithubComProjectAiServicesAiServicesInternalPkgCatalogApiserverModelsUpdateDatasourceResponse
  - `created_at` string
  - `created_by` string
  - `id` string
  - `message` string
  - `name` string
  - `propagation_errors` GithubComProjectAiServicesAiServicesInternalPkgCatalogApiserverModelsPropagationError[] — PropagationErrors lists any downstream Digitize propagation failures. Omitted when all propagations succeeded.
    - `application_id` string — ApplicationID is the UUID of the application whose Digitize service could not be updated.
    - `application_name` string — ApplicationName is the display name of that application, for UI rendering.
    - `error` string — Error is the human-readable reason the propagation failed.
  - `provider` string
  - `status` string
  - `type` string
  - `updated_at` string

## Other responses

- `400` — Invalid request body or invalid ID
- `401` — Unauthorized
- `404` — Datasource not found
- `422` — Connection test failed with new credentials
- `500` — Internal Server Error

## Changes

- **2026-08-31** `d0ce82043e56` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ibm/apis/ai-services-catalog-api/changes/datasources/:id/put.md)

---

[API](https://skmtc.dev/ibm/apis/ai-services-catalog-api.md) · [All operations](https://skmtc.dev/ibm/apis/ai-services-catalog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibm/ai-services-catalog-api/revisions/d0ce82043e56/schema)
