Skip to content

Commit

Permalink
fix example request document-service status (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzakki authored Oct 28, 2024
1 parent 6b46a99 commit b4eabde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/dev-docs/api/document-service/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ To automatically publish a document while updating it, add `status: 'published'`

```js
await strapi.documents('api::restaurant.restaurant').update({
documentId: 'a1b2c3d4e5f6g7h8i9j0klm',
data: {
documentId: 'a1b2c3d4e5f6g7h8i9j0klm',
name: "Biscotte Restaurant (closed)",
},
status: 'published',
Expand Down

0 comments on commit b4eabde

Please sign in to comment.