You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixing the table of links in the rest api documentation (#2247)
* Fixing the table of links in the rest api documentation
* String to specify the default behavior when creating a document
* Updating the links in the sidebar, too
* copy fix
|`GET`|`/api/:pluralApiId`|[Get a list of document](#get-documents)|
66
-
|`POST`|`/api/:pluralApiId`|[Create a document](#create-an-entry)|
67
-
|`GET`|`/api/:pluralApiId/:documentId`|[Get a document](#get-an-entry)|
68
-
|`PUT`|`/api/:pluralApiId/:documentId`|[Update a document](#update-an-entry)|
69
-
|`DELETE`|`/api/:pluralApiId/:documentId`|[Delete a document](#delete-an-entry)|
65
+
|`GET`|`/api/:pluralApiId`|[Get a list of document](#get-all)|
66
+
|`POST`|`/api/:pluralApiId`|[Create a document](#create)|
67
+
|`GET`|`/api/:pluralApiId/:documentId`|[Get a document](#get)|
68
+
|`PUT`|`/api/:pluralApiId/:documentId`|[Update a document](#update)|
69
+
|`DELETE`|`/api/:pluralApiId/:documentId`|[Delete a document](#delete)|
70
70
71
71
</TabItem>
72
72
@@ -300,7 +300,9 @@ In Strapi 5, a specific document is reached by its `documentId`.
300
300
301
301
Creates a document and returns its value.
302
302
303
-
If the [Internationalization (i18n) plugin](/dev-docs/i18n) is installed, it's possible to use POST requests to the REST API to [create localized documents](/dev-docs/i18n#creating-a-new-localized-entry).
303
+
By default, a document is created with a published status. To create a document as a draft, pass the [`?status=draft`](/dev-docs/api/rest/filters-locale-publication#status) query parameter.
304
+
305
+
If the Internationalization (i18n) feature is enabled on the content-type, it's possible to use POST requests to the REST API to [create localized documents](/dev-docs/i18n#creating-a-new-localized-entry).
304
306
305
307
:::note
306
308
While creating a document, you can define its relations and their order (see [Managing relations through the REST API](/dev-docs/api/rest/relations.md) for more details).
0 commit comments