title: Create or Update (with PUT) in Django Rest Framework
body: <p>I have a model which has has an primary key <code>id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)</code>.</p>
  
  <p>When a <code>PUT</code> request is sent to the resource's endpoint <code>/api/v1/resource/&lt;id&gt;.json</code> I would like to <em>create</em> a new resource with the supplied <code>id</code> if the resource does not already exist.</p>
  
  <p><em>Note: I'm using a <code>ModelViewSet</code> with a <code>ModelSerializer</code></em></p>
  
  <p>What is the most elegant way of doing this?</p>