title: How to allow POST for update action in django rest framework
body: <p>We're building an API with Django Rest Framework, and our clients want it to have this endpoint:</p>
  
  <pre><code>Method: POST
  URL: api/v1/application/&lt;id&gt;
  </code></pre>
  
  <p>It's basically an update endpoint but with POST instead of PUT. </p>
  
  <p>I already have a viewset for this model, and we're using the create, list, and retrieve actions.</p>
  
  <p>So, one thing I can do is to allow POST for update actions in Django Rest Framework, but I haven't found how to do that. Also, I can define a custom action like this:</p>
  
  <pre><code>@action(methods=['post'], detail=True)
  def update_status(self, request, pk=None):
      # some code
  </code></pre>
  
  <p>The problem is this routes to <code>application/&lt;id&gt;/update_status</code>, I can change the route by passing the <code>url_path</code> parameter, but if it's None or empty it just defaults to <code>update_status</code> again.</p>
  
  <p>I can also just define this endpoint in a different view and route manually, but that's a worse solution in my opinion, it would be nice to have it in the viewset I already have.</p>
  
  <p>Thanks.</p>