Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Erroneous error from /api/1.3/coordinates when updating a coordinate #2956

@ocket8888

Description

@ocket8888
$ curl -skb lab-cookie.jar -X PUT -d '{"id": 10, "name": "testquest", "latitude": -90, "longitude": 180}' "https://<lab machine>:6443/api/1.4/coordinates" | jq .
{
	"alerts": [
		{
			"text": "missing key: id",
			"level": "error"
		}
	]
}
 $ curl -skb lab-cookie.jar "https://<lab machine>:6443/api/1.4/coordinates?name=testquest" | jq .                                                  
{
	"response": [
		{
			"id": 10,
			"name": "testquest",
			"latitude": 0,
			"longitude": 0,
			"lastUpdated": "2018-10-25 16:40:33+00"
		}
	]
}

same data works fine when submitting a POST to create a coordinate pair, but for some reason PUT is unable to find the "id" key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions