Request an analysis
const url = 'https://example.com/api/v1/cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/analyses';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"force":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/analyses \ --header 'Content-Type: application/json' \ --data '{ "force": false }'202 with the job id; 200 with the run id when the latest run is current and not forced.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”Request a fresh analysis; force re-runs even when the evidence is unchanged.
object
Responses
Section titled “Responses”The latest run is current
200: the latest run is current and force was not set.
object
Example generated
{ "run_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Successful Response
202: the analysis job was queued.
object
Example generated
{ "job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Unauthorized
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"}Forbidden
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"}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"}An analysis is already queued or running. The problem carries the existing job’s id in the extension member job_id.
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" } ]}Too Many Requests
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"}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.