From ff64518facad16b0df49f00ddf05c3cb98f4f2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20No=C3=ABl?= Date: Tue, 26 Jan 2021 11:18:24 +0100 Subject: [PATCH] add draftAndPublish option --- developer-docs/latest/concepts/models.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/developer-docs/latest/concepts/models.md b/developer-docs/latest/concepts/models.md index b9a56ee70d..8609649d1e 100644 --- a/developer-docs/latest/concepts/models.md +++ b/developer-docs/latest/concepts/models.md @@ -168,14 +168,17 @@ The options key on the model-json states. - `populateCreatorFields`: Configure whether the API response should include `created_by` and `updated_by` fields or not. Accepts a `boolean`. The default value is `false`. -**Path —** `User.settings.json`. +- `draftAndPublish`: Enable the draft and publish feature. Accepts a `boolean`. The default value is `false`. + +**Path —** `Restaurant.settings.json`. ```json { "options": { "timestamps": true, "privateAttributes": ["id", "created_at"], - "populateCreatorFields": true + "populateCreatorFields": true, + "draftAndPublish": false } } ```