v51

OpenAPI 3.1.0raw.githubusercontent.com2026-08-018486293.2 KB
providers

Update Stored Provider

Update a stored provider. Omitted fields are left as-is; an explicit null clears them.

api_key follows the same rule: omit it to keep the stored key, send a new one to rotate, or send null to clear it. The row is locked FOR UPDATE so the expected_updated_at check and the write it guards are atomic.

patch/v1/provider-credentials/{instance}

Path parameters

instancestring required

Request body

api_basestring nullable
api_keystring nullable

New API key. Omit to keep the existing one. Never returned.

client_argsobject nullable
expected_updated_atstring nullable

Optimistic concurrency: if set, the update 412s unless it matches the stored updated_at.

provider_typestring nullable

Response

Successful Response

api_basestring nullable
client_argsobject
created_atstring nullable
decryptableboolean
instancestring required
last4string nullable
provider_typestring nullable
updated_atstring nullable