Skip to content

Commit 86d71dd

Browse files
authored
fix: Clarify PUT operation (#1408)
1 parent e33791a commit 86d71dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/operations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Note: the `PATCH` method must be enabled explicitly in the configuration, refer
4444

4545
Note: with JSON Merge Patch, the [null values will be skipped](https://symfony.com/doc/current/components/serializer.html#skipping-null-values) in the response.
4646

47+
Note: Current `PUT` implementation behaves more or less like the `PATCH` method. Existing properties not included in the payload are **not** removed, their current values are preserved. To remove an existing property, its value must be explicitly set to `null`. Implementing [the standard `PUT` behavior](https://httpwg.org/specs/rfc7231.html#PUT) is on the roadmap, follow [issue #4344] (https://github.com/api-platform/core/issues/4344) to track the progress.
48+
4749
## Enabling and Disabling Operations
4850

4951
If no operation is specified, all default CRUD operations are automatically registered. It is also possible - and recommended

0 commit comments

Comments
 (0)