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
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,7 @@ Example:
240
240
241
241
### DELETE<aname="readme-http-delete"></a>
242
242
243
-
The `DELETE` HTTP request is used to delete an existing record where ID is specified in the URL.
243
+
The `DELETE` HTTP request is used to delete an existing record where ID is specified in the URL. If the `Versioned` extension from the `silverstripe/versioned` module has been applied to the DataObject then the `doArchive()` method is called on the DataObject which deletes it from other the draft and live versions of the site. If the `Versioned` extension has not bee applied then the `delete()` method will be called on DataObject instead.
@@ -258,9 +258,9 @@ Actions can only be run on existing records. The action parameter is added to th
258
258
The following actions are available:
259
259
| Action | Description |
260
260
| - | - |
261
-
|`publish`| Publish a record. Requires `silverstripe/versioned` to be installed. |
262
-
|`unpublish`| Unpublish a record. Requires `silverstripe/versioned` to be installed. |
263
-
|`archive`| Archive a record. Requires `silverstripe/versioned` to be installed. |
261
+
|`publish`| Publish a record. Requires the `Versioned` extension from `silverstripe/versioned`module to be applied to the `DataObject`. |
262
+
|`unpublish`| Unpublish a record. Requires the `Versioned` extension from `silverstripe/versioned`module to be applied to the `DataObject`. |
263
+
|`archive`| Archive a record. Requires the `Versioned` extension from `silverstripe/versioned`module to be applied to the `DataObject`. Note this similar to using the `DELETE` HTTP method. |
264
264
265
265
Example:
266
266
-`curl -X PUT https://mysite.test/api/pages/123/publish`
0 commit comments