Skip to content

Commit 13a726a

Browse files
authored
docs: corrects Local API example in import export docs (#16128)
fixes a typo in the import-export plugin docs where the Local API export example used` slug: 'uploads'` instead of the `collection: 'exports'`
1 parent 9141e34 commit 13a726a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/plugins/import-export.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ There are four possible ways that the plugin allows for exporting documents, the
502502

503503
1. Direct download - Using a `POST` to `/api/exports/download` and streams the response as a file download
504504
2. File storage - Goes to the `exports` collection as an uploads enabled collection
505-
3. Local API - A create call to the uploads collection: `payload.create({ slug: 'uploads', ...parameters })`
505+
3. Local API - A create call to the exports collection: `payload.create({ collection: 'exports', data: { collectionSlug: 'pages', format: 'json' } })`
506506
4. Jobs Queue - `payload.jobs.queue({ task: 'createCollectionExport', input: parameters })`
507507

508508
In the Export drawer you can choose:

0 commit comments

Comments
 (0)