Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    Just use a POST for things like this. You're not manipulating a hypermedia "document," so using PATCH makes no sense. What you're attempting is more like RPC. So use a POST. Commented Oct 22, 2019 at 23:19
  • According to MDN here - developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH - "The HTTP PATCH request method applies partial modifications to a resource" and "PATCH (like PUT) may have side-effects on other resources". It seems to be correct choice for your case. Commented Nov 22, 2019 at 12:49
  • Solve by making "Employee Promotion" a record Commented Jul 19, 2020 at 13:04