Skip to content
Proud to collaborate with Microsoft for Startups

neon.data_apis.update ​

Update Neon Data API settings or refresh the schema cache

Update Neon Data API configuration and/or refresh the schema cache.

Issues PATCH /projects/{neon_project_id}/branches/{neon_branch_id}/data-api/{db_name}.

An empty body refreshes the schema cache without changing settings. When settings is provided it replaces the existing settings entirely (Neon API semantics — omitted keys reset to defaults). Include jwt_role_claim_key whenever sending settings.

Inputs:

  • neon_project_id: Neon project ID (required).
  • neon_branch_id: Neon branch ID (required).
  • db_name: Database name (required).
  • settings: Full settings object to replace (optional; omit to refresh only).

Outputs (terminal state_data):

  • refreshed: bool — always true on success
  • settings: dict — settings that were sent (if any)
  • provider_metadata: dict — raw Neon response (often empty object)

Error policy:

  • 4xx → WorkflowNotRetryableError.
  • 5xx / timeouts → propagate so the engine retries.

Plugin required: context.get_plugin("neon") must expose .api_token.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-neon
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—Cloud connection holding the Neon credential
neon_project_idstringYes—Neon project ID
neon_branch_idstringYes—Neon branch ID
db_namestringYes—Database name whose Data API to update
settingsjsonNo—Full settings object (replaces existing; omit to refresh only)

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
neon_project_idstringNo——
neon_branch_idstringNo——
db_namestringNo——
refreshedbooleanNo——
settingsjsonNo——
provider_metadatajsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "neon.data_apis.update",
  "initial_data": {
    "connection_uuid": "value",
    "neon_project_id": "value",
    "neon_branch_id": "value",
    "db_name": "value"
  }
}