{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-update-connector-auth-request-schema.json",
  "title": "UpdateConnectorAuthRequest",
  "description": "Request to update authentication config (clears OAuth tokens, requires re-auth)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-connector-configuration-api-openapi.yml#/components/schemas/UpdateConnectorAuthRequest",
  "type": "object",
  "required": [
    "auth"
  ],
  "properties": {
    "auth": {
      "$ref": "#/$defs/ConnectorAuthConfig"
    },
    "baseUrl": {
      "type": "string",
      "description": "Base URL (if changed with auth update)",
      "format": "uri"
    }
  },
  "$defs": {
    "ConnectorAuthConfig": {
      "type": "object",
      "description": "Authentication configuration for a connector instance",
      "properties": {
        "values": {
          "type": "object",
          "description": "Authentication values (keys depend on connector's auth schema)",
          "additionalProperties": true
        },
        "oauthConfigId": {
          "type": "string",
          "description": "ID of admin-created OAuth configuration to use"
        },
        "customValues": {
          "type": "object",
          "description": "Custom authentication values specific to the connector",
          "additionalProperties": true
        }
      }
    }
  }
}