{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/postman/main/json-schema/postman-collection-run-summary-schema.json",
  "title": "CollectionRunSummary",
  "description": "Summary information about a collection run.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postman-collection-runs-api-openapi.yml#/components/schemas/CollectionRunSummary",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The run's unique ID"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "finished",
        "failed"
      ],
      "description": "The run status"
    },
    "source": {
      "type": "string",
      "enum": [
        "collection_runner",
        "monitor",
        "webhook",
        "schedule",
        "api",
        "newman"
      ],
      "description": "How the run was triggered"
    },
    "startedAt": {
      "type": "string",
      "format": "date-time"
    },
    "finishedAt": {
      "type": "string",
      "format": "date-time"
    },
    "stats": {
      "type": "object",
      "properties": {
        "requests": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer"
            },
            "failed": {
              "type": "integer"
            }
          }
        },
        "assertions": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer"
            },
            "failed": {
              "type": "integer"
            }
          }
        }
      }
    },
    "collectionId": {
      "type": "string"
    },
    "environmentId": {
      "type": "string"
    },
    "createdBy": {
      "type": "string"
    }
  }
}