title: How to archive Jira version with REST API
body: <p>I'm trying to automatically archived versions in Jira.</p>
  
  <p>So far, I've been able to create and update versions in Jira with the REST API, but no luck with archiving a version.</p>
  
  <p>I've try just setting the field archived from false to true using something like this:</p>
  
  <p>{ "update" : { "archived" : [{ "set" : true }] } }</p>
  
  <p>I've also try to set the released field at the same time.
  I did also try to send all version's fields with archived updated.
  All without success, so I'm guessing there is something else that needs to be done in that case.</p>
  
  <p>So to resume this, I am mainly trying to find the exact json content to archive a version since I already know how to use JIRA REST API.</p>
  
  <p>Thanks.</p>