diff --git a/src/services/aphp/serviceCohorts.ts b/src/services/aphp/serviceCohorts.ts index b279aff5b..fb942c01b 100644 --- a/src/services/aphp/serviceCohorts.ts +++ b/src/services/aphp/serviceCohorts.ts @@ -670,7 +670,7 @@ const servicesCohorts: IServiceCohorts = { try { const { cohortId, motivation, tables } = args - return await apiBackend.post('/exports/v1/exports/', { + return await apiBackend.post('/exports/', { motivation, export_tables: tables.map((table: ExportCSVTable) => ({ table_ids: table.id,