Update Directory

$.post('/api/dir/foo', {
  dir: {
    name: 'bar'
  }
});
Language
Click Try It! to start a request and see the response here!