Skip to Content
dropshelf
REST API

Change a connector source

Admin only. A field left out keeps its value, secret and grants included. grants, sent with the grantsVersion they were read at, replace the list and re-check every query on the source before the answer: one its grants no longer cover is blocked, one they cover again goes back to what it was; impact says what happened. With dryRun=true only the impact of the grants in the body is answered and nothing is saved. Switching a grant to a policy that does not hold queries approves what waits under it. A change to anything but the grants makes every replica drop the source's pool, catalog and answers.

PATCH
/api/v1/admin/connectors/{id}

Admin only. A field left out keeps its value, secret and grants included. grants, sent with the grantsVersion they were read at, replace the list and re-check every query on the source before the answer: one its grants no longer cover is blocked, one they cover again goes back to what it was; impact says what happened. With dryRun=true only the impact of the grants in the body is answered and nothing is saved. Switching a grant to a policy that does not hold queries approves what waits under it. A change to anything but the grants makes every replica drop the source's pool, catalog and answers.

Authorization

headerAuthorizationBearer <token>

A personal access token, odp_ followed by 43 characters. Create one in the dashboard.

Path Parameters

id*string

The source id.

Query Parameters

dryRun?boolean

true to answer only the impact of the grants sent.

Request Body

The fields to change.

application/json
  1. body
cacheDefault?string

A duration.

cacheMin?string

A duration.

config?
driver?string

postgres or snowflake.

grants?array<>
grantsVersion?integer

The grantsVersion the grants were read at.

Formatint64
maxBytes?integer
Formatint64
maxConcurrent?integer
maxRows?integer
name?string

Lower-case letters, digits, _ and -.

secret?string

The credential, or ${DROPSHELF_CONNECTOR_NAME}.

timeout?string

A duration.

Response Body

The source now, with impact (null when the grants did not change) and recheckError when the queries could not be re-checked; or, for a dry run, only impact.

application/json
  1. response
cacheDefault*string

A duration such as 15m.

cacheMin*string

A duration such as 1m.

config*

The driver's fields, never the credential.

connections?integer

For an MCP server: how many members are connected. On the list and on one source read.

createdAt*string

When it was connected.

Formatdate-time
driver*string

postgres, snowflake or mcp.

grants*array<>
grantsVersion*integer

Send it back with grants, so a save over another admin's is refused.

Formatint64
id*string

The source id.

kind*string

sql for a database, mcp for an MCP server.

maxBytes*integer
Formatint64
maxConcurrent*integer
maxRows*integer
name*string

The name queries files use.

secret*string

set, or env:NAME when the credential is read from the server's environment. Empty for an MCP server with no client secret.

timeout*string

A duration such as 30s.

updatedAt*string

When it last changed.

Formatdate-time
usage?

On the list and on one source read; not on a write's answer.

impact*|null
recheckError?string

The grants are saved but their queries could not be re-checked.

Example Request
curl -X PATCH 'https://drop.example.com/api/v1/admin/connectors/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "cacheDefault": "string",  "cacheMin": "string",  "config": {},  "connections": 0,  "createdAt": "2019-08-24T14:15:22Z",  "driver": "string",  "grants": [    {      "all": true,      "id": "string",      "kind": "string",      "note": "string",      "policy": "string",      "scope": [        {          "database": "string",          "schema": "string",          "table": "string"        }      ],      "value": "string",      "visibility": "any"    }  ],  "grantsVersion": 0,  "id": "string",  "kind": "string",  "maxBytes": 0,  "maxConcurrent": 0,  "maxRows": 0,  "name": "string",  "secret": "string",  "timeout": "string",  "updatedAt": "2019-08-24T14:15:22Z",  "usage": {    "blocked": 0,    "drops": 0,    "errorsDay": 0,    "grantQueries": [      {        "id": "string",        "kind": "string",        "queries": 0,        "value": "string"      }    ],    "grants": 0,    "waiting": 0  },  "impact": {    "blocked": 0,    "drops": 0,    "restored": 0,    "stale": "2019-08-24T14:15:22Z",    "unchecked": 0  },  "recheckError": "string"}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.