Source readers
Update source reader status
POST
/source-readers/{uuid}/statusChanges 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
AuthorizationstringheaderrequiredAPI 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
statusstringrequiredrunning or paused. Pausing a shared source reader stops reading for every pipeline on it.
Responses
200OKapplication/json
apiBaseURLstringarchiveConnectorUUIDstring<uuid> | nullcompanyUUIDstring<uuid>requiredconnectorUUIDstring<uuid>requiredcontainerNamestringrequiredcreatedAtstring<date-time>dataPlaneNamestringrequireddatabasestringrequiredenvironmentUUIDstring<uuid>requiredisSharedboolean | nullisValidbooleanrequirednamestringrequiredsettingsobjectrequiredShow child attributes
archiveLocationTypestringarchiveLogPasswordstring | nullarchiveLogPathstring | nullarchiveLogPrivateLinkUUIDstring<uuid> | nulldeprecatedarchiveLogUsernamestring | nulldeprecatedbackfillBatchSizeinteger | nullbackfillDefaultsobjectShow child attributes
chunkSizeintegerpaginationstringparallelismintegerpresetstringreadModestring
collectionScopedModeboolean | nullcompositeTypesAsTextboolean | nulldatabasesToSyncstring[] | nulldeploymentScopedModeboolean | nulldisableAutoFetchTablesboolean | nulldisableFullDocumentBeforeChangeboolean | nulldisableNoCursorTimeoutboolean | nullenableClientSideFullDocumentLookupboolean | nullenableHeartbeatsboolean | nullenableRelationMessageCachingboolean | nullenableSchemaHistoryCompactionboolean | nullmaxConnIdleTimeSecondsinteger | nullmessageCompressionstring | nullmssqlChangeTrackingConcurrencyinteger | nullmssqlChangeTrackingMaxIdleConnsinteger | nullmssqlChangeTrackingPollIntervalMsinteger | nullmssqlReplicationMethodstring | nulloneTopicPerSchemaboolean | nullpublicationAutoCreateModestring | nullpublicationNameOverridestring | nullpublishViaPartitionRootboolean | nullreplicationSlotOverridestring | nulls3PathMappingsobject[] | nullShow child attributes
idstringrequiredmatchobjectrequiredShow child attributes
fileNameRegexstring
metadataobjectrequiredShow child attributes
columnsstring[]
parserobjectrequiredShow child attributes
columnOrderstring[]csvobjectShow child attributes
commentPrefixstringdelimiterstringheadersstring[]nullValuesstring[]trimWhitespaceboolean
typestringrequired
prefixstringrequiredprimaryKeystring[]referenceIDstringrequired
unifyAcrossDatabasesboolean | nullunifyAcrossDatabasesRegexstring | nullunifyAcrossSchemasboolean | nullunifyAcrossSchemasMaxParallelisminteger | nullunifyAcrossSchemasRegexstring | nulluseAdvanceOnPrimaryKeepAliveboolean | nulluseFailoverReplicationSlotboolean | nulluseNumericTypesForMoneyboolean | nulluseReaderForOracleStreamingboolean | null
statusstringrequiredtablesConfigRecord<string, object> | nullShow child attributes
excludeColumnsstring[]includeColumnsstring[]namestringschemastringunifyAcrossDatabasesbooleanunifyAcrossSchemasboolean
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?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.