title: Is it semantically incorrect to use PUT for a "mark as favorite" operation?
body: <p>In my application I have 2 types: <code>user</code> and <code>file</code>. A <code>file</code> can be "marked as favorite" by a <code>user</code> to allow for easy access. I currently use the <code>PUT</code> method when "favoriting" a <code>file</code> like this:</p>
  
  <pre><code>PUT /user/fileList/
  Body: { fileId: 'xxxx' }
  </code></pre>
  
  <p>The server will then add the given <code>fileId</code> to the user's record (authorization is handled seperately).</p>
  
  <p>Is this use of <code>PUT</code> semantically incorrect or otherwise bad practice? Is there a better way to implement this pattern? It feels like an sub-optimal solution (at least semantically) to me.</p>