Validate extraction template settings
Validates the proposed combination of fields, custom settings and accounts against the given extraction template before creating or migrating an extract. Use this endpoint as a pre-flight check — for example, before creating an extract or calling the migrate-wide endpoint.
Accounts are referenced by their embedded account IDs and must all belong to a single connection. The connection is resolved automatically from the provided accounts.
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
A unique integer value identifying this Extraction template.
Request body
Example request
{
"accounts": [
100500,
100501
],
"template_settings": {
"fields": [
"date",
"campaign.name",
"metrics.clicks",
"metrics.impressions"
],
"additional_params": {
"time_granularity": "day"
}
}
}Response
Validation result. An empty detail and empty incompatible mean the settings are valid. Incompatible field combinations are returned in incompatible; other validation errors (e.g. bad custom settings) are returned in detail.
Example response
{
"incompatible": {}
}Changes
No recorded changes to this operation across all 1 revision of this API.