{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-create-v2-order-response-schema.json",
  "title": "CreateV2OrderResponse",
  "description": "The created orders data.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-orders-api-openapi.yml#/components/schemas/CreateV2OrderResponse",
  "required": [
    "errors",
    "results"
  ],
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "description": "Details of the created orders. If you have defined multiple geometries, each geometry will result in a separate order.\n",
      "items": {
        "$ref": "#/$defs/V2ResultDetails"
      }
    },
    "errors": {
      "type": "array",
      "description": "Failed geometries error details.\n",
      "items": {
        "$ref": "#/$defs/CreateV2OrderErrorDetails"
      }
    }
  },
  "$defs": {
    "CreateV2OrderErrorDetails": {
      "required": [
        "details",
        "index",
        "message"
      ],
      "type": "object",
      "properties": {
        "index": {
          "type": "number",
          "description": "The failed order index number.\n"
        },
        "message": {
          "type": "string",
          "description": "The error message associated with the failed order."
        },
        "details": {
          "type": "string",
          "description": "Error message details."
        }
      }
    },
    "V2ResultDetails": {
      "required": [
        "id",
        "index"
      ],
      "type": "object",
      "properties": {
        "index": {
          "type": "number",
          "description": "The created order index number. Indexing starts from zero.\n"
        },
        "id": {
          "type": "string",
          "description": "The created order ID.",
          "format": "uuid"
        }
      }
    }
  }
}