Skip to content

Commit b4eabde

Browse files
authored
fix example request document-service status (#2275)
1 parent 6b46a99 commit b4eabde

File tree

1 file changed

+1
-1
lines changed
  • docusaurus/docs/dev-docs/api/document-service

1 file changed

+1
-1
lines changed

docusaurus/docs/dev-docs/api/document-service/status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ To automatically publish a document while updating it, add `status: 'published'`
198198

199199
```js
200200
await strapi.documents('api::restaurant.restaurant').update({
201+
documentId: 'a1b2c3d4e5f6g7h8i9j0klm',
201202
data: {
202-
documentId: 'a1b2c3d4e5f6g7h8i9j0klm',
203203
name: "Biscotte Restaurant (closed)",
204204
},
205205
status: 'published',

0 commit comments

Comments
 (0)