Warehouse Selective Sync allows you to manage the data that you send to your Warehouses. You can use this feature to stop syncing specific events (also known as collections) or properties that aren’t relevant, and may slow down your Warehouse syncs.
Returns the advanced sync schedule for a Warehouse.
The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap(api.selectiveSync.getAdvancedSyncScheduleFromWarehouse('kjU72LCJexvrqL7G4TMHHN')) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "enabled": true,
- "schedule": {
- "times": [
- {
- "hourOfDay": 5,
- "enabled": false
}, - {
- "hourOfDay": 7,
- "enabled": true
}, - {
- "hourOfDay": 23,
- "enabled": true
}
], - "timezone": "America/Vancouver"
}
}
}
Updates the advanced sync schedule for a Warehouse, replacing the sync schedule with a new schedule.
The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
{- "enabled": true,
- "schedule": {
- "times": [
- {
- "enabled": true,
- "hourOfDay": 7
}, - {
- "enabled": false,
- "hourOfDay": 5
}, - {
- "enabled": true,
- "hourOfDay": 23
}
], - "timezone": "America/Vancouver"
}
}
{- "data": {
- "enabled": true,
- "schedule": {
- "times": [
- {
- "hourOfDay": 5,
- "enabled": false
}, - {
- "hourOfDay": 7,
- "enabled": true
}, - {
- "hourOfDay": 23,
- "enabled": true
}
], - "timezone": "America/Vancouver"
}
}
}
Returns the schema for a Warehouse, including Sources, Collections, and Properties.
The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap( api.selectiveSync.listSelectiveSyncsFromWarehouseAndSource('kjU72LCJexvrqL7G4TMHHN', 'rh5BDZp6QDHvXFCkibm1pR') ) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "items": [
- {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
- "collection": "tracks",
- "warehouseId": "6WzNjtobBv3GjubD8wUnA6",
- "properties": {
- "amount": {
- "enabled": true,
- "type": "integer",
- "lastSeenAt": "2006-01-02T15:04:05.000Z",
- "createdAt": "2006-01-02T15:04:05.000Z"
}, - "context_library_name": {
- "enabled": true,
- "type": "string",
- "lastSeenAt": "2006-01-02T15:04:05.000Z",
- "createdAt": "2006-01-02T15:04:05.000Z"
}
}
}
], - "pagination": {
- "current": "MA==",
- "next": "MTAw",
- "totalEntries": 10
}
}
}
Returns the overview of syncs for every Source connected to a Warehouse.
The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap(api.selectiveSync.listSyncsFromWarehouse('kjU72LCJexvrqL7G4TMHHN')) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "reports": [ ],
- "pagination": {
- "next": null,
- "current": ""
}
}
}
Returns the overview of syncs for a Source connected to a Warehouse.
The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap(api.selectiveSync.listSyncsFromWarehouseAndSource('kjU72LCJexvrqL7G4TMHHN', 'rh5BDZp6QDHvXFCkibm1pR')) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "reports": [ ],
- "pagination": {
- "next": null,
- "current": ""
}
}
}
Configures the schema for a Warehouse, including Sources, Collections, and Properties.
• When called, this endpoint may generate the Storage Destination Modified
event in the audit trail.
The rate limit for this endpoint is 2 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
{- "syncOverrides": [
- {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
- "enabled": true,
- "collection": "checkout_started",
- "property": "context_ip"
}
]
}
{- "data": {
- "status": "UPDATED",
- "warnings": [ ]
}
}