{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daytona-io/json-schema/daytona-io-update-job-status-schema.json",
  "title": "UpdateJobStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daytona-io-jobs-api-openapi.yml#/components/schemas/UpdateJobStatus",
  "properties": {
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/JobStatus"
        }
      ],
      "description": "The new status of the job"
    },
    "errorMessage": {
      "description": "Error message if the job failed",
      "type": "string"
    },
    "resultMetadata": {
      "description": "Result metadata for the job",
      "type": "string"
    }
  },
  "required": [
    "status"
  ],
  "type": "object",
  "$defs": {
    "JobStatus": {
      "enum": [
        "PENDING",
        "IN_PROGRESS",
        "COMPLETED",
        "FAILED"
      ],
      "type": "string"
    }
  }
}