{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/JobRequest", "title": "JobRequest", "type": "object", "description": "Request body for creating a new job", "required": [ "JobName", "JobDescription", "Targets" ], "properties": { "JobName": { "type": "string", "description": "Name for the new job" }, "JobDescription": { "type": "string", "description": "Description of the job" }, "Schedule": { "type": "string", "description": "Cron expression for scheduling or RunNow" }, "Targets": { "type": "array", "description": "Target devices or groups for the job", "items": { "type": "object", "properties": { "Id": { "type": "integer", "description": "Target device or group identifier" }, "Data": { "type": "string", "description": "Additional target data" }, "TargetType": { "type": "object", "properties": { "Id": { "type": "integer", "description": "Target type identifier" }, "Name": { "type": "string", "description": "Target type name" } } } } } } } }