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

Source readers

Update source reader status

POST/source-readers/{uuid}/status

Changes the status of a shared source reader (e.g. running, paused). Pausing it stops every pipeline that reads from it. Resuming any of those pipelines through the pipeline status endpoint also resumes the source reader. Only shared source readers are supported; for non-shared source readers, use the pipeline status endpoint instead.

Authorizations

  • Authorizationstringheaderrequired

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

Request

curl --request POST \
  --url https://api.artie.com/source-readers/{uuid}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "draft"
}'

Path parameters

  • uuidstringrequired

Body

application/json

  • statusstringrequired

    running or paused. Pausing a shared source reader stops reading for every pipeline on it.

    Available options: draft, paused, running

Responses

200OKapplication/json

  • 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
    • 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
    • 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

400Bad Request

500Internal Server Error

200 OK
{
  "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": [
            "<string>"
          ],
          "csv": {
            "commentPrefix": "<string>",
            "delimiter": "<string>",
            "headers": [
              {}
            ],
            "nullValues": [
              {}
            ],
            "trimWhitespace": true
          },
          "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"
}

Was this page helpful?