Base URL: <https://app.nanonets.com>

Retry Export

Endpoint

POST /api/v2/Inferences/Model/{model_id}/ImageLevelInferences/retryallexports

Description

This endpoint allows you to export a file or retry the export for a file within a specified model. This is useful in cases where some exports have failed and you want to retrigger the export for these files.

Request Parameters

  • model_id (string, required): The unique identifier of the model that the file belongs to.
  • file_id (string, required): The unique identifier of the file you want to export. You can locate this ID on the extract data page associated with the model.

Sample Request:

curl:

curl --location 'https://app.nanonets.com/api/v2/Inferences/Model/{model_id}/ImageLevelInferences/retryallexports' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API_KEY}' \
--data '{"file_ids":["{file_id"]}'

Python:

import requests
import json

url = "https://app.nanonets.com/api/v2/Inferences/Model/{model_id}/ImageLevelInferences/retryallexports"

payload = json.dumps({
  "file_ids": [
    "{file_id}"
  ]
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Basic {API_KEY}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)