File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
docusaurus/docs/dev-docs/api/document-service Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,8 @@ To populate while updating documents:
314
314
<Request title =" Example request " >
315
315
316
316
``` js
317
- strapi .documents (" api::article.article" ).update (" cjld2cjxh0000qzrmn831i7rn" , {
317
+ strapi .documents (" api::article.article" ).update ({
318
+ documentId: " cjld2cjxh0000qzrmn831i7rn" ,
318
319
data: {
319
320
title: " Test Article Update" ,
320
321
},
@@ -351,7 +352,8 @@ To populate while publishing documents (same behavior with `unpublish()` and `di
351
352
<Request title =" Example request " >
352
353
353
354
``` js
354
- strapi .documents (" api::article.article" ).publish (" cjld2cjxh0000qzrmn831i7rn" , {
355
+ strapi .documents (" api::article.article" ).publish ({
356
+ documentId: " cjld2cjxh0000qzrmn831i7rn" ,
355
357
populate: [" headerImage" ],
356
358
});
357
359
```
You can’t perform that action at this time.
0 commit comments