Re-run several exports as a batch (internal)

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
POST /admin/case/rerun-exports

Creates a batch from exportIds and queues it; the batch re-runs the exports one at a time, waiting for each to finish. Ids that match no export are counted as invalid. Returns the batch id, the number of ids and the number invalid; follow progress with the batch route. Super admin only.

application/json

Body Required

  • exportIds array[string] Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • batchId string Required
      • totalCount number Required
      • invalidCount number Required
    • statusCode number Required
    • timestamp string(date-time) Required
POST /admin/case/rerun-exports
curl \
 --request POST 'http://api.example.com/admin/case/rerun-exports' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "exportIds": [
    "string"
  ]
}'
Request examples
{
  "exportIds": [
    "string"
  ]
}
Response examples (200)
{
  "data": {
    "batchId": "65a1b2c3d4e5f6a7b8c9d0f2",
    "totalCount": 3,
    "invalidCount": 0
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}