Error 1500 Incorrect Geometry Type when adding a feature

464
0
01-30-2018 11:38 PM
DeepakSwamy
New Contributor II

I am trying to add a feature to a feature layer using the REST API.

I gave the following input :

[     {       "attributes" : {         "style" : "#FF0000,5,1,#ff8800,0.4",         "CreationDate" : 1517216876474,          "EditDate" : 1517216876474       },        "geometry" :        {         "paths" :          [           [             [-105.73242, 44.11914],              [-98.30566, 42.84375],              [-95.36133, 44.52784],              [-92.37305, 42.87596]           ]         ]       }     }
]

But I am getting the error message:

Error: 1500, Description: Incorrect geometry type.

Can you please help me to resolve this error? Thank you very much.

0 Kudos
0 Replies