Need correct Json syntax to upsert a vertex with no attributes

I have no problem formatting proper Json to upsert vertices with one or more attributes, but am having trouble for Json with no attributes. For example:

{"vertices": {"Voter": "E3605013-5183-43E3-A57E-52D0F7703C03"}}

returns the error:

“The payload format parsing error, the string type variable is only allowed for attribute value or operator.”,
“code”: “REST-30200”

Can someone please tell me how to correct this?

Thank you

Hi George,

You need to add an empty attribute object to your JSON. This worked for me:
{"vertices": {"Dummy": {"100": {}}}}
Notice the {} after the vertex ID.

1 Like

Thank you Szilard! That did it.