---
title: "Update datasource instance configuration"
method: PATCH
path: "/rest/api/v1/configure/datasources/{datasourceId}/instances/{instanceId}"
tags: ["Datasources"]
---

# Update datasource instance configuration

`PATCH /rest/api/v1/configure/datasources/{datasourceId}/instances/{instanceId}`

Updates the greenlisted configuration values for a datasource instance. Only configuration keys that are exposed via the public API greenlist may be set. Returns the full greenlisted configuration after the update is applied.

## Path parameters

- `datasourceId` string, required
- `instanceId` string, required

## Request body

- UpdateDatasourceConfigurationRequest — Request to update greenlisted configuration values for a datasource instance. Only keys that are exposed via the public API greenlist may be set.
  - `configuration` DatasourceInstanceConfiguration, required — Configuration for a datasource instance
    - `values` ConfigurationValues, required — A map from configuration key names to their values

## Response `200`

OK

- DatasourceConfigurationResponse — The greenlisted configuration values for a datasource instance. Only keys that are exposed via the public API greenlist are included.
  - `configuration` DatasourceInstanceConfiguration, required — Configuration for a datasource instance
    - `values` ConfigurationValues, required — A map from configuration key names to their values

## Other responses

- `400` — Invalid request
- `401` — Not authorized
- `403` — Forbidden
- `404` — Datasource instance not found

## Changes

> 92 revisions in range; 12 could not be searched.

- **2026-07-21** `972a5118199e` — 1 info
  - the endpoint scheme security `APIToken` was added to the API
- **2026-07-21** `2d62172604d1` — 1 info
  - the endpoint scheme security `APIToken` was removed from the API
- **2026-06-22** `08c17c9175d0` — 1 info
  - the endpoint scheme security `APIToken` was added to the API
- **2026-06-21** `b162fb37b3ad` — 1 info
  - the endpoint scheme security `APIToken` was removed from the API
- **2026-06-20** `d1f1d35ae0f9` — 1 info
  - the endpoint scheme security `APIToken` was added to the API

[Full history](https://skmtc.dev/gleanwork/apis/glean-api/changes/rest/api/v1/configure/datasources/:datasourceId/instances/:instanceId/patch.md)

---

[API](https://skmtc.dev/gleanwork/apis/glean-api.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-api/revisions/7ed1f79f6fb7/schema)
