Appearance
UpsertOperationInput
Type: Input
Input for creating or updating 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). Honored only on create — passing on update is rejected. | |
| customKind | String | Custom operation type name (when kind is custom) | |
| deadline | ISO8601 | Deadline (ISO8601) | |
| expectedDuration | Int | Expected duration in seconds | |
| externalId | String | External system ID | |
| id | OperationID | ID for update; omit for create | |
| 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). Honored on create or update; defaults to now. |