Appearance
CreateOperationInput
Type: Input
Input for creating an operation
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| capabilityId | CapabilityID | Preferred capability (id) for scheduling | |
| componentGroupId | ComponentGroupID | Associated component group ID | |
| componentId | ComponentID | Associated component ID | |
| createdAt | ISO8601 | Override creation timestamp (ISO8601). Defaults to now. | |
| deadline | ISO8601 | Deadline (ISO8601) | |
| expectedDuration | Int | Expected duration in seconds | |
| externalId | String | External system ID (must be unique per tenant) | |
| jobId | JobID! | Parent job ID (required) | |
| kind | OperationKind! | Operation type (required) | |
| metadata | JSONMap | Additional metadata as JSON object | |
| milestoneId | MilestoneID | Associated milestone ID | |
| name | String! | Operation name (required) | |
| outsourcedLeadTimeDays | Int | Expected lead time in calendar days | |
| outsourcedPurchaseOrderId | PurchaseOrderID | Purchase order covering this outsourced operation | |
| outsourcedSupplierId | SupplierID | Supplier this operation is subcontracted to | |
| parameters | JSON | Kind-specific production parameters (JSON). Use getOperationParameterSchema(kind:) to retrieve the expected schema before submitting. | |
| productionQuantity | Int | Production quantity | |
| remarks | String | Notes and remarks | |
| requestedWorkCenterId | WorkCenterID | Preferred work center for scheduling | |
| requiredResourceType | String | Type of resource required | |
| scheduledCompletionAt | ISO8601 | Scheduled completion time (ISO8601) | |
| scheduledStartAt | ISO8601 | Scheduled start time (ISO8601) | |
| sortOrder | Int | Sort order (defaults to 0) | |
| status | OperationStatus | Initial status (defaults to pending) | |
| updatedAt | ISO8601 | Override update timestamp (ISO8601). Defaults to now. |