Evidence snapshot of a case
const url = 'https://example.com/api/v1/cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/evidence';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/evidenceThe latest snapshot, or the one named by snapshot_id.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Everything fetched about the changeset at one time, with the coverage record.
object
Honest record of what was and was not fetched; mandatory on every snapshot.
object
Outcome of an auxiliary fetch (user profile, discussion).
An element whose prior version could not be reconstructed, with the reason.
object
OSM element type.
Why a prior version could not be reconstructed.
Outcome of an auxiliary fetch (user profile, discussion).
A changeset discussion comment; text is raw here and sanitized at render time.
object
A changed object as the API returns it: the stored facts plus its evidence id.
object
Action an element underwent in the changeset.
OSM element type.
Where a fact came from: live API, replayed fixture, or computed by code.
Where a fact came from: live API, replayed fixture, or computed by code.
A single tag key difference between before and after versions of an element.
Example
{ "coverage": { "discussion": "fetched", "elements_skipped_budget": 0, "history_gaps": [ { "osm_type": "node", "reason": "redacted" } ], "score": 1, "snapshot_truncated": false, "user_profile": "fetched" }, "elements": [ { "action": "create", "osm_type": "node", "source": "osm_api" } ], "provisional": false, "rendered_text": "", "rendered_tokens": 0, "source": "osm_api", "tag_diffs": [ { "change": "added", "osm_type": "node" } ]}Not Found
Application/problem+json body. Extension members (for example job_id) are allowed.
object
One validation failure: where, what, and a stable machine code (never the input value).
object
Example
{ "type": "about:blank"}Validation Error
object
object
object
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}Map data © OpenStreetMap contributors, under the Open Database Licence. Code under the Apache-2.0 licence. Made by Yogesh.
Changeset Second Opinion is an independent open source tool for OpenStreetMap reviewers. It is not endorsed by, sponsored by or affiliated with the OpenStreetMap Foundation. OpenStreetMap is a trademark of the OpenStreetMap Foundation, used under itstrademark policy.