I am trying the new Editor widget in JS 4.11 (https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) with a branch versioned feature service.
Unfortunately, the gdbVersion on the FeatureLayer (https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) is not sent with the applyEdits method. In fact, the documentation of the applyEdits method does not show many of the parameters in the REST API (https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm).
Question:
Will editing versioned feature services be supported in the JavaScript API?
I ended up with calling applyEdits REST API of the feature layer to apply edits to the version
axios({ method: 'post', url: fs_url + '/2/applyEdits', data: 'f=pjson&gdbVersion=' + gdbVersion + '&adds=[' + JSON.stringify(newFeatures) + ']&updates=[' + JSON.stringify(editFeatures) + ']'})
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.