#!/bin/bash
# RunReport -- REST curl example
# Pre-configured for the DM Web Services test environment.
# Replace YOUR_TOKEN below with your Bearer token.
BASE_URL="https://webservices.nebulasuite.net"
TOKEN="YOUR_TOKEN"

curl -X POST "${BASE_URL}/api/public/v1/reports/run" \
  -H "Authorization: Bearer ${TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
        "reportGuid": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
        "parameters": [
          { "name": "StartDate", "dataType": 4, "length": 0, "data": "2026-06-01" },
          { "name": "EndDate", "dataType": 4, "length": 0, "data": "2026-06-30" }
        ],
        "originalFileName": "JuneShipments",
        "useOriginalFileName": true,
        "correlationId": "req-2026-0629-001"
      }'
