Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Source readers

Validate an unsaved source reader

POST/source-readers/validate-unsaved

Validates a source reader configuration without persisting it.

Authorizations

  • Authorizationstringheaderrequired

    API key passed as a Bearer token in the Authorization header.

Request

curl --request POST \
  --url https://api.artie.com/source-readers/validate-unsaved \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sourceReader": {
    "apiBaseURL": "<string>",
    "archiveConnectorUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "companyUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "connectorUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "containerName": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "dataPlaneName": "<string>",
    "database": "<string>",
    "environmentUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "isShared": true,
    "isValid": true,
    "name": "<string>",
    "settings": {
      "archiveLocationType": "azure_blob",
      "archiveLogPassword": "<string>",
      "archiveLogPath": "<string>",
      "archiveLogPrivateLinkUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "archiveLogUsername": "<string>",
      "backfillBatchSize": 0,
      "backfillDefaults": {
        "chunkSize": 100000,
        "pagination": "client",
        "parallelism": 1,
        "preset": "normal",
        "readMode": "primaryKey"
      },
      "collectionScopedMode": true,
      "compositeTypesAsText": true,
      "databasesToSync": [
        "<string>"
      ],
      "deploymentScopedMode": true,
      "disableAutoFetchTables": true,
      "disableFullDocumentBeforeChange": true,
      "disableNoCursorTimeout": true,
      "enableClientSideFullDocumentLookup": true,
      "enableHeartbeats": true,
      "enableRelationMessageCaching": true,
      "enableSchemaHistoryCompaction": true,
      "maxConnIdleTimeSeconds": 123,
      "messageCompression": "gzip",
      "mssqlChangeTrackingConcurrency": 123,
      "mssqlChangeTrackingMaxIdleConns": 123,
      "mssqlChangeTrackingPollIntervalMs": 0,
      "mssqlReplicationMethod": "<string>",
      "oneTopicPerSchema": true,
      "publicationAutoCreateMode": "<string>",
      "publicationNameOverride": "<string>",
      "publishViaPartitionRoot": true,
      "replicationSlotOverride": "<string>",
      "s3PathMappings": [
        {
          "id": "<string>",
          "match": {
            "fileNameRegex": "<string>"
          },
          "metadata": {
            "columns": [
              "artieSourcePath"
            ]
          },
          "parser": {
            "columnOrder": [
              {}
            ],
            "csv": {
              "commentPrefix": {},
              "delimiter": {},
              "headers": {},
              "nullValues": {},
              "trimWhitespace": {}
            },
            "type": "csv"
          },
          "prefix": "<string>",
          "primaryKey": [
            "<string>"
          ],
          "referenceID": "<string>"
        }
      ],
      "unifyAcrossDatabases": true,
      "unifyAcrossDatabasesRegex": "<string>",
      "unifyAcrossSchemas": true,
      "unifyAcrossSchemasMaxParallelism": 0,
      "unifyAcrossSchemasRegex": "<string>",
      "useAdvanceOnPrimaryKeepAlive": true,
      "useFailoverReplicationSlot": true,
      "useNumericTypesForMoney": true,
      "useReaderForOracleStreaming": true
    },
    "status": "draft",
    "tablesConfig": {
      "key": {
        "excludeColumns": [
          "<string>"
        ],
        "includeColumns": [
          "<string>"
        ],
        "name": "<string>",
        "schema": "<string>",
        "unifyAcrossDatabases": true,
        "unifyAcrossSchemas": true
      }
    },
    "updatedAt": "2023-11-07T05:31:56Z",
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}'

Body

application/json

  • sourceReaderobjectrequired
    Show child attributes
    • apiBaseURLstring
    • archiveConnectorUUIDstring<uuid> | null
    • companyUUIDstring<uuid>required
    • connectorUUIDstring<uuid>required
    • containerNamestringrequired
    • createdAtstring<date-time>
    • dataPlaneNamestringrequired
    • databasestringrequired
    • environmentUUIDstring<uuid>required
    • isSharedboolean | null
    • isValidbooleanrequired
    • namestringrequired
    • settingsobjectrequired
      Show child attributes
      • archiveLocationTypestring

        Available options: azure_blob, smb_share

      • archiveLogPasswordstring | null
      • archiveLogPathstring | null
      • archiveLogPrivateLinkUUIDstring<uuid> | nulldeprecated
      • archiveLogUsernamestring | nulldeprecated
      • backfillBatchSizeinteger | null

        Range x ≥ 0

      • backfillDefaultsobject
        Show child attributes
        • chunkSizeinteger

          Range 100000 ≤ x ≤ 100000000

        • paginationstring

          Available options: client, server

        • parallelisminteger

          Range 1 ≤ x ≤ 50

        • presetstring

          Available options: normal, performance

        • readModestring

          Available options: primaryKey, range, ctid

      • collectionScopedModeboolean | null
      • compositeTypesAsTextboolean | null
      • databasesToSyncstring[] | null
      • deploymentScopedModeboolean | null
      • disableAutoFetchTablesboolean | null
      • disableFullDocumentBeforeChangeboolean | null
      • disableNoCursorTimeoutboolean | null
      • enableClientSideFullDocumentLookupboolean | null
      • enableHeartbeatsboolean | null
      • enableRelationMessageCachingboolean | null
      • enableSchemaHistoryCompactionboolean | null
      • maxConnIdleTimeSecondsinteger | null
      • messageCompressionstring | null

        Available options: gzip, , null

      • mssqlChangeTrackingConcurrencyinteger | null
      • mssqlChangeTrackingMaxIdleConnsinteger | null
      • mssqlChangeTrackingPollIntervalMsinteger | null

        Range x ≥ 0

      • mssqlReplicationMethodstring | null
      • oneTopicPerSchemaboolean | null
      • publicationAutoCreateModestring | null
      • publicationNameOverridestring | null
      • publishViaPartitionRootboolean | null
      • replicationSlotOverridestring | null
      • s3PathMappingsobject[] | null
        Show child attributes
        • idstringrequired
        • matchobjectrequired
          Show child attributes
          • fileNameRegexstring
        • metadataobjectrequired
          Show child attributes
          • columnsstring[]
        • parserobjectrequired
          Show child attributes
          • columnOrderstring[]
          • csvobject
            Show child attributes
            • commentPrefixstring
            • delimiterstring
            • headersstring[]
            • nullValuesstring[]
            • trimWhitespaceboolean
          • typestringrequired

            Available options: csv, json, parquet, ach

        • prefixstringrequired
        • primaryKeystring[]
        • referenceIDstringrequired
      • unifyAcrossDatabasesboolean | null
      • unifyAcrossDatabasesRegexstring | null
      • unifyAcrossSchemasboolean | null
      • unifyAcrossSchemasMaxParallelisminteger | null

        Range 0 ≤ x ≤ 3

      • unifyAcrossSchemasRegexstring | null
      • useAdvanceOnPrimaryKeepAliveboolean | null
      • useFailoverReplicationSlotboolean | null
      • useNumericTypesForMoneyboolean | null
      • useReaderForOracleStreamingboolean | null
    • statusstringrequired

      Available options: draft, paused, running

    • tablesConfigRecord<string, object> | null
      Show child attributes
      • excludeColumnsstring[]
      • includeColumnsstring[]
      • namestring
      • schemastring
      • unifyAcrossDatabasesboolean
      • unifyAcrossSchemasboolean
    • updatedAtstring<date-time>
    • uuidstring<uuid>required

Responses

200OKapplication/json

  • errorstringrequired

204No Content

500Internal Server Error

200 OK
{
  "error": "<string>"
}

Was this page helpful?