Allow write API calls to work

Write api calls are made through /admin/api instead of /api.