Wrap write actions to proper API calls