diff --git a/docusaurus/docs/dev-docs/api/document-service.md b/docusaurus/docs/dev-docs/api/document-service.md index 78825a0e75..62db443c9a 100644 --- a/docusaurus/docs/dev-docs/api/document-service.md +++ b/docusaurus/docs/dev-docs/api/document-service.md @@ -634,7 +634,7 @@ If no `locale` parameter is passed, `discardDraft()` discards draft data and ove ```js -strapi.documents.discardDraft({ +strapi.documents('api::restaurant.restaurant').discardDraft({ documentId: 'a1b2c3d4e5f6g7h8i9j0klm', }); ```