Skip to main content

POST /reports/force_update

Updates report details. Use this method to retrospectively update reports when needed, e.g. when master data has changed.

Note

This method does not trigger image recognition, just reports business logic.

Adress: POST https://instance_name/api/v1.5/uploads/uploads_by_url

Content-type: application/json

Request body parameters


reports list of reports IDs

Before the end of processing, each report from this list will receive the status of NOT_READY. If the report is ready, its status changes to READY.


webhook url

Use webhook to reduce latency. If specified, the reports will be sent by POST request to this URL immediately when ready (one by one).

The field is optional. If not specified, the client should explicitly poll reports.


Request example

curl –i –X POST
https://test.inspector-cloud.com/api/v1.5/reports/
-H ‘Authorization: Token your_token’
-F "reports=[1786, 1787, 1788]"

Response example

Response code: 200

{
"reports": [1786, 1787, 1788]
}

If the webhook is specified, as soon as the reports are updated to it, a JSON will be sent as a POST request.

{
1786: {...}, // JSON-объект запроса,
1787: {...}, // JSON-объект запроса,
1788: {...} // JSON-объект запроса,
}