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

Pipelines

Validate unsaved source

POST/pipelines/validate-unsaved-source

Validates source reader and connector configuration without persisting. Returns 204 on success or 200 with error message on validation failure. A sourceConnector that names a saved connector by uuid also needs connectors:write.

Authorizations

  • Authorizationstringheaderrequired

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

Request

curl --request POST \
  --url https://api.artie.com/pipelines/validate-unsaved-source \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dataPlaneName": "<string>",
  "dynamoDBBackfillConfig": {
    "bucket": "<string>",
    "enabled": true,
    "exportArn": "<string>",
    "maxParallelism": 0,
    "optionalFolder": "<string>"
  },
  "sourceConnector": {
    "dataPlaneName": "<string>",
    "defaultDatabase": "<string>",
    "draftPipelineUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "environmentUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "label": "<string>",
    "privateLinkUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "sharedConfig": {},
    "snapshotPrivateLinkUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "sshTunnelUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "uuid": "<string>"
  },
  "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"
  },
  "sourceReaderUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tables": [
    {
      "advancedSettings": {
        "alias": "<string>",
        "backfillFromDatabases": [
          "<string>"
        ],
        "backfillFromSchemas": [
          "<string>"
        ],
        "bigQueryPartitionSettings": {
          "partitionBy": "<string>",
          "partitionField": "<string>",
          "partitionType": "<string>"
        },
        "bufferRows": 123,
        "columnsToCompress": [
          "<string>"
        ],
        "columnsToEncrypt": [
          "<string>"
        ],
        "columnsToHash": [
          "<string>"
        ],
        "columnsToTrim": [
          "<string>"
        ],
        "ctidSettings": {
          "chunkSize": 0,
          "enabled": true,
          "maxParallelism": 0,
          "physicalRanges": {
            "enabled": true,
            "pagesPerRange": 0
          }
        },
        "encryptJSONBColumns": true,
        "endingPrimaryKey": "<string>",
        "excludeColumns": [
          "<string>"
        ],
        "flattenDocuments": true,
        "flattenDocumentsMaxDepth": 0,
        "flushIntervalSeconds": 123,
        "flushSizeKb": 123,
        "historyTableBackfillFromSchemas": [
          "<string>"
        ],
        "includeColumns": [
          "<string>"
        ],
        "k8sRequestCPU": 0,
        "k8sRequestMemoryMB": 0,
        "keepOldSwapTable": true,
        "mergePredicates": [
          {
            "partitionBy": "<string>",
            "partitionField": "<string>",
            "partitionType": "<string>"
          }
        ],
        "msmFlushCount": 0,
        "partitionRangeSettings": {
          "enabled": true,
          "range": {
            "batchSize": 0,
            "chunksSize": 0,
            "enabled": true,
            "maxParallelism": 0
          }
        },
        "previousSwapTableSuffix": "<string>",
        "primaryKeysOverride": [
          "<string>"
        ],
        "rangeSettings": {
          "batchSize": 0,
          "chunksSize": 0,
          "enabled": true,
          "maxParallelism": 0
        },
        "shouldBackfillHistoryTable": true,
        "skipBackfill": true,
        "skipDelete": true,
        "skipNoOpUpdates": true,
        "softPartitioning": {
          "enabled": true,
          "maxPartitions": 123,
          "partitionColumn": "<string>",
          "partitionFrequency": "<string>",
          "partitionSchema": "<string>"
        },
        "startingPrimaryKey": "<string>",
        "streamARN": "<string>",
        "swapTableSuffix": "<string>",
        "unifyAcrossDatabases": true,
        "unifyAcrossSchemas": true
      },
      "backfillStages": [
        {
          "error": "<string>",
          "rowsWritten": 123,
          "stage": "queued",
          "timestamp": "2023-11-07T05:31:56Z"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "destinationTableName": "<string>",
      "disableReplication": true,
      "enableHistoryMode": true,
      "historyBackfillStages": [
        {
          "error": "<string>",
          "rowsWritten": 123,
          "stage": "queued",
          "timestamp": "2023-11-07T05:31:56Z"
        }
      ],
      "historyTableStatus": "<string>",
      "individualDeployment": true,
      "name": "<string>",
      "schema": "<string>",
      "status": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z",
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "validateTables": true
}'

Body

application/json

  • dataPlaneNamestring
  • dynamoDBBackfillConfigobject
    Show child attributes
    • bucketstring
    • enabledboolean
    • exportArnstring
    • maxParallelisminteger

      Range x ≥ 0

    • optionalFolderstring
  • sourceConnectorobject
    Show child attributes
    • dataPlaneNamestring
    • defaultDatabasestring | null
    • draftPipelineUUIDstring<uuid> | null

      On create only: the draft pipeline this connector is for.

    • environmentUUIDstring<uuid> | null
    • labelstring
    • privateLinkUUIDstring<uuid> | null
    • sharedConfigobject | null
    • snapshotPrivateLinkUUIDstring<uuid> | null
    • sshTunnelUUIDstring<uuid> | null
    • typestring
    • uuidstring
  • sourceReaderobject
    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
  • sourceReaderUUIDstring<uuid> | null
  • tablesobject[]required
    Show child attributes
    • advancedSettingsobject
      Show child attributes
      • aliasstring
      • backfillFromDatabasesstring[] | null
      • backfillFromSchemasstring[] | null
      • bigQueryPartitionSettingsobject
        Show child attributes
        • partitionBystring
        • partitionFieldstring
        • partitionTypestring
      • bufferRowsinteger
      • columnsToCompressstring[]
      • columnsToEncryptstring[]
      • columnsToHashstring[]
      • columnsToTrimstring[]
      • ctidSettingsobject
        Show child attributes
        • chunkSizeinteger

          Range x ≥ 0

        • enabledboolean
        • maxParallelisminteger

          Range x ≥ 0

        • physicalRangesobject
          Show child attributes
          • enabledboolean
          • pagesPerRangeinteger

            Range x ≥ 0

      • encryptJSONBColumnsboolean
      • endingPrimaryKeystring
      • excludeColumnsstring[]
      • flattenDocumentsboolean
      • flattenDocumentsMaxDepthinteger

        Range x ≥ 0

      • flushIntervalSecondsinteger
      • flushSizeKbinteger
      • historyTableBackfillFromSchemasstring[] | null
      • includeColumnsstring[]
      • k8sRequestCPUinteger

        Range x ≥ 0

      • k8sRequestMemoryMBinteger

        Range x ≥ 0

      • keepOldSwapTableboolean
      • mergePredicatesobject[]
        Show child attributes
        • partitionBystring
        • partitionFieldstring
        • partitionTypestring
      • msmFlushCountinteger

        Range x ≥ 0

      • partitionRangeSettingsobject
        Show child attributes
        • enabledboolean
        • rangeobject
          Show child attributes
          • batchSizeinteger

            Range x ≥ 0

          • chunksSizeinteger

            Range x ≥ 0

          • enabledboolean
          • maxParallelisminteger

            Range x ≥ 0

      • previousSwapTableSuffixstring
      • primaryKeysOverridestring[] | null
      • rangeSettingsobject
        Show child attributes
        • batchSizeinteger

          Range x ≥ 0

        • chunksSizeinteger

          Range x ≥ 0

        • enabledboolean
        • maxParallelisminteger

          Range x ≥ 0

      • shouldBackfillHistoryTableboolean | null
      • skipBackfillboolean
      • skipDeleteboolean
      • skipNoOpUpdatesboolean
      • softPartitioningobject
        Show child attributes
        • enabledboolean
        • maxPartitionsinteger
        • partitionColumnstring
        • partitionFrequencystring
        • partitionSchemastring
      • startingPrimaryKeystring
      • streamARNstring
      • swapTableSuffixstring
      • unifyAcrossDatabasesboolean
      • unifyAcrossSchemasboolean
    • backfillStagesobject[]
      Show child attributes
      • errorstring
      • rowsWritteninteger<int64>
      • stagestringrequired

        Available options: queued, snapshotting, copying, merging, done, failed, cancelled

      • timestampstring<date-time>required
    • createdAtstring<date-time>
    • destinationTableNamestring
    • disableReplicationbooleandeprecated
    • enableHistoryModeboolean
    • historyBackfillStagesobject[]
      Show child attributes
      • errorstring
      • rowsWritteninteger<int64>
      • stagestringrequired

        Available options: queued, snapshotting, copying, merging, done, failed, cancelled

      • timestampstring<date-time>required
    • historyTableStatusstring
    • individualDeploymentboolean
    • namestring
    • schemastring
    • statusstring
    • updatedAtstring<date-time>
    • uuidstring<uuid>
  • validateTablesbooleanrequired

Responses

200OKapplication/json

  • errorstring

204No Content

400Bad Request

500Internal Server Error

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

Was this page helpful?