{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/uipath/refs/heads/main/json-schema/automation-hub-automation-schema.json",
  "title": "Automation",
  "description": "An automation idea or project in the Automation Hub pipeline",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique integer identifier of the automation",
      "example": 12345
    },
    "name": {
      "type": "string",
      "description": "Display name of the automation idea",
      "example": "Example Name"
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the automation idea and its business value",
      "example": "Example description for this resource."
    },
    "phase": {
      "type": "string",
      "enum": [
        "Idea",
        "Assessment",
        "Analysis",
        "Development",
        "Testing",
        "Production",
        "OnHold",
        "Rejected"
      ],
      "description": "Current phase of the automation in the pipeline",
      "example": "Idea"
    },
    "status": {
      "type": "string",
      "description": "Current status within the active phase",
      "example": "Active"
    },
    "submittedBy": {
      "type": "string",
      "description": "Name of the user who submitted the automation idea",
      "example": "example-value"
    },
    "submittedDate": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the idea was submitted",
      "example": "2026-01-15T10:30:00Z"
    },
    "lastModified": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp of the last modification",
      "example": "2026-01-15T10:30:00Z"
    },
    "estimatedBenefit": {
      "$ref": "#/components/schemas/BenefitData"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tags associated with the automation for categorization",
      "example": []
    }
  }
}