{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-draw-rectangle-request-schema.json",
  "title": "DrawRectangleRequest",
  "description": "Request to draw one or more rectangles on a base image",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-edit-api-openapi.yml#/components/schemas/DrawRectangleRequest",
  "type": "object",
  "properties": {
    "BaseImageBytes": {
      "format": "byte",
      "description": "Image to draw rectangles on, in bytes.  You can also use the BaseImageUrl instead to supply image input as a URL",
      "type": "string"
    },
    "BaseImageUrl": {
      "description": "Image to draw rectangles on, as an HTTP or HTTPS fully-qualified URL",
      "type": "string"
    },
    "RectanglesToDraw": {
      "description": "Rectangles to draw on the image.  Rectangles are drawn in index order.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/DrawRectangleInstance"
      }
    }
  },
  "$defs": {
    "DrawRectangleInstance": {
      "description": "Rectangle instance to draw on an image",
      "type": "object",
      "properties": {
        "BorderColor": {
          "description": "Border Color to use - can be a hex value (with #) or HTML common color name.  Transparent colors are supported.",
          "type": "string"
        },
        "BorderWidth": {
          "format": "double",
          "description": "Width in pixels of the border.  Pass in 0 to draw a rectangle with no border",
          "type": "number"
        },
        "FillColor": {
          "description": "Fill Color to use - can be a hex value (with #) or HTML common color name.  Transparent colors are supported.  Leave blank to not fill the rectangle.",
          "type": "string"
        },
        "X": {
          "format": "double",
          "description": "Pixel location of the left edge of the rectangle location",
          "type": "number"
        },
        "Y": {
          "format": "double",
          "description": "Pixel location of the top edge of the rectangle location",
          "type": "number"
        },
        "Width": {
          "format": "double",
          "description": "Width in pixels of the rectangle",
          "type": "number"
        },
        "Height": {
          "format": "double",
          "description": "Height in pixels of the rectangle",
          "type": "number"
        }
      }
    }
  }
}