{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nominal/json-schema/nominal-put-api-data-source-connection-v1-connection-rid-request-schema.json",
  "title": "PutApiDataSourceConnectionV1ConnectionRidRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/nominal-openapi-generated.yml#/components/schemas/PutApiDataSourceConnectionV1ConnectionRidRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "metadata": {
      "type": "object",
      "properties": {
        "<key>": {
          "type": "string"
        }
      }
    },
    "connectionDetails": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "timescale": {
          "type": "object",
          "properties": {
            "database": {
              "type": "string"
            },
            "host": {
              "type": "string"
            },
            "port": {
              "type": "integer"
            },
            "username": {
              "type": "string"
            },
            "passwordSecretRid": {
              "type": "string"
            }
          }
        }
      }
    },
    "requiredTagNames": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "availableTagValues": {
      "type": "object",
      "properties": {
        "<key>": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "scraping": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "influx": {
          "type": "object",
          "properties": {
            "seriesArchetypeConstruction": {
              "type": "object",
              "properties": {
                "separator": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "shouldScrape": {
      "type": "boolean"
    },
    "limits": {
      "type": "object",
      "properties": {
        "maxQueryRange": {
          "type": "object",
          "properties": {
            "unit": {
              "type": "string"
            },
            "count": {
              "type": "integer"
            }
          }
        }
      }
    }
  }
}