Hi Earl, thanks for your reply.
I pasted the value for features = response_featuredata_dict["features"] below. As you can see it is a list with dictionaries describing features which have the two components that are needed to add a feature; "attributes" and "geometry". As far as I can see this structure follows the same structure that is required for the addFeatures-endpoint to work (Add Features—ArcGIS REST API: Services Directory | ArcGIS for Developers ). I think the problem lies somehwere in the way the url-request is encoded, but I don't understand exactly how/why. To clarify: if I write the variable features = response_featuredata_dict["features"] to a json-file > open it > paste the json manually on the addFeatures-endpoint, everything works just fine (I also tried removing the esri-reserved fields objectid and shape__length from the dict, but same result).
[
{
"attributes" : {
"OBJECTID" : 1,
"testveld1" : null,
"testveld2" : null,
"testveld3" : null,
"testveld4" : null,
"testveld5" : null,
"Shape__Length" : 0.233080015281243
},
"geometry" :
{
"paths" :
[
[
[5.75271606445174, 53.1577808372716],
[5.98068237304519, 53.2063365338456]
]
]
}
},
{
"attributes" : {
"OBJECTID" : 2,
"testveld1" : "pioh",
"testveld2" : 3,
"testveld3" : null,
"testveld4" : 1551774600000,
"testveld5" : "domein1",
"Shape__Length" : 0.0814480403011684
},
"geometry" :
{
"paths" :
[
[
[6.26358032226356, 53.2642844121363],
[6.2779998779276, 53.1841229520489]
]
]
}
},
{
"attributes" : {
"OBJECTID" : 3,
"testveld1" : null,
"testveld2" : null,
"testveld3" : null,
"testveld4" : null,
"testveld5" : null,
"Shape__Length" : 0.221553255888095
},
"geometry" :
{
"paths" :
[
[
[5.73348999023302, 53.0216975033831],
[5.94703674316242, 53.0807197831419]
]
]
}
},
{
"attributes" : {
"OBJECTID" : 4,
"testveld1" : null,
"testveld2" : null,
"testveld3" : null,
"testveld4" : null,
"testveld5" : null,
"Shape__Length" : 1.0799569282187
},
"geometry" :
{
"paths" :
[
[
[5.75340270995956, 53.2601772176945],
[5.63873291015502, 53.2679805498839],
[5.73692321777208, 53.2273054601658],
[5.55976867675669, 53.2342928214055],
[5.60028076171757, 53.1437800104326],
[5.67375183105341, 53.1717770993397],
[5.51582336425675, 53.1989332854727],
[5.61882019042849, 53.2207280784468],
[5.62156677245973, 53.2437444951522],
[5.71769714355335, 53.2782459228982],
[5.82550048827977, 53.2449771682925]
]
]
}
}
]
I shared the featureservices in my example code with everyone. If it helps in your reply/tests; feel free to use them.