Oh yeah, I didn't see the UpdateFeatures rest end point pointed out by Xander Bakker. That makes much more sense. Although I cannot see if that is directly accessible through the ArcGIS JS API.
You should be able to post a standard request to that end point though, which might be easier than using the applyEdits method anyway.