updateFeatures - multiple features at once

114
0
12-12-2019 05:28 PM
JackSilburn
New Contributor III

Using the arcGIS API method 'updateFeatres', I am unable to successfully update multiple features at once.

e.g.

[
{
"attributes":{
"LotCode":1,
"OBJECTID":18,
"LotCode_x":1,
"LotCode_y":"1",
"Free":2344,
"Occupied":4212,
"IsOffline":false
},
"attributes":{
"LotCode":2,
"OBJECTID":19,
"LotCode_x":1,
"LotCode_y":"1",
"Free":23,
"Occupied":24,
"IsOffline":false
}
}
]

I am passing this in the 'features' parameter, as the payload for the POST request.

This approach works for one feature at a time, but I have been unsuccessful in getting it to work with more than one.

Could be a simple json formatting issue?

Regards

0 Kudos
0 Replies