Update an extract
Update extraction configuration. scheduling, fields, additional_params and sync_historical_data are required for PUT. Dynamic-field names can be supplied through custom_fields or its dynamic_fields alias. Omitting both or supplying [] preserves the current dynamic-field selection; [] does not deselect all fields. When both aliases are supplied, their sets of names must match or the request returns 400. Source discovery and compatibility validation apply; changing dynamic dimensions is rejected. Historical dates are validated against the agency's historical-depth limit before mutation. Responses retain the existing custom_fields object representation.
Request
- Base URLhttps://embedded.improvado.io
- Auth
- HTTP bearer
- or API key in cookie dts_session_id
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Extract ID
Request body
Example request
{
"scheduling": [
{
"scheduling": {
"value": {
"days": 1,
"hours": 1,
"minutes": 1,
"interval": "day",
"timezone": "UTC",
"lookback_window": {
"name": "default"
}
}
}
}
],
"custom_fields": [
"custom_metric"
],
"dynamic_fields": [
"custom_metric"
]
}Response
Update an Extract
Example response
{
"extract": {
"value": {
"id": 1,
"title": "Extract 1",
"connection_id": 1,
"account_id": 1,
"account_name": "Account 1",
"account_entity_id": 1001,
"account_embedded_id": 5001,
"template": {
"id": 1,
"title": "Extract Template 1",
"datasource_name": "google_sheets",
"data_class": "table",
"is_wide_template": false
},
"data_table": {
"id": 1,
"name": "table_1",
"title": "Table 1"
},
"fields": [
{
"title": "Field 1",
"name": "field_1",
"user_kind": "string",
"user_type": "string",
"selected": true,
"can_edit": true,
"sql_name": "field_1",
"format": "string",
"is_dynamic": false
}
],
"created_at": "2021-01-01T00:00:00Z",
"last_sync": "2021-01-01T00:00:00Z",
"status": "active",
"error_text": "Error text",
"schedules_limit": 1,
"scheduling": [
{
"days": 1,
"hours": 1,
"minutes": 1,
"interval": "daily",
"timezone": "UTC",
"lookback_window": {
"name": "1 day"
}
}
],
"additional_params": [
{
"type": "string",
"name": "param_1",
"required": true,
"title": "Param 1",
"description": "Param 1 description",
"params": {},
"initial_value": "value"
}
],
"sync_historical_data": "2025-02-25"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.