Create an export
Queues a CSV export. The type selects the dataset; search_params is an
optional Ransack query (same shape used by the q[...] params on list endpoints)
that filters which records are exported. Pass record_selection: "all" to
clear the filter server-side and export everything in scope.
Generation is asynchronous. Poll GET /admin/exports/{id} until done is true,
then redirect the browser to download_url to fetch the file.
Required scope: the read scope of the exported resource — read_products for product exports, read_customers for customer exports, etc. (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
Spree::Exports::Products, Spree::Exports::Orders, Spree::Exports::Customers, Spree::Exports::ProductTranslations, Spree::Exports::GiftCards, Spree::Exports::CouponCodes, Spree::Exports::NewsletterSubscribers "Spree::Exports::Products"
Set to "all" to ignore search_params and export everything in scope.
filtered, all "filtered"
Ransack query hash. Same predicates accepted by the list endpoint.
{ "name_cont": "shirt" }
Response
export queued

