Creates an export and its destination atomically. The organization is taken from the API key; the project_id in the body must belong to it, as must the destination's integration_id. The export name must be unique within the project. For a weekly schedule, run_day_of_week is required.
Include additional_destinations to deliver to more than one destination from the start; each entry is the same destination shape as destination and is written in the same transaction. Only valid alongside destination; an export can have at most 5 destinations total, each on a different connection. Marketplace destinations cannot be combined with others, and a DelivrDSP destination can only be the export's first (primary) destination.
Response fields by status. 201: export (id, organization_id, project_id, name, description, query, schedule, status, enabled, last_run_at, last_run_status, end_date, run_time, run_day_of_week, run_timezone, archived_at, auto_disabled_reason, created_at, updated_at), destination (id, organization_id, project_id, export_id, type, name, config, status, enabled, created_at, updated_at, primary), destination.destination (type, integration_id, prefix, path_format, record_type, match_key, file_format, fields, array_transform, filename_template, delivery_mode, emit_empty_file, combine_output, identifier, mode, lookback_days, hem_scope, use_visitor_hem, list_name, subject_template, list_id, delivers_activity, campaign_member_status, include_email, tier), destination.destination.campaign_member_status_bands[] (score_field, min, max, status), additional_destinations[] (id, organization_id, project_id, export_id, type, name, config, status, enabled, created_at, updated_at, primary), additional_destinations[].destination (type, integration_id, prefix, path_format, record_type, match_key, file_format, fields, array_transform, filename_template, delivery_mode, emit_empty_file, combine_output, identifier, mode, lookback_days, hem_scope, use_visitor_hem, list_name, subject_template, list_id, delivers_activity, campaign_member_status, include_email, tier), additional_destinations[].destination.campaign_member_status_bands[] (score_field, min, max, status). 400, 409: error.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Missing or invalid API key / secret.
413Request body larger than 1 MiB.
