The Operation object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: 1
Default: false
Default: false
{
"id": "operation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation": "workstation_example",
"description": "description_example",
"total_operation_time": 0,
"batch_size": 1,
"create_job_card_based_on_batch_size": false,
"is_corrective_operation": false,
"quality_inspection_template": "quality_inspection_template_example"
} /api/manufacturing/operation/{id} Retrieve a operation
Retrieves the details of an existing operation. Supply the unique operation ID that was returned from a previous request.
Path parameters
The identifier of the operation to retrieve.
Returns
Returns the operation object if a valid identifier was provided.
curl https://api.overplane.dev/api/manufacturing/operation/operation_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "operation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation": "workstation_example",
"description": "description_example",
"total_operation_time": 0,
"batch_size": 1,
"create_job_card_based_on_batch_size": false,
"is_corrective_operation": false,
"quality_inspection_template": "quality_inspection_template_example"
} /api/manufacturing/operation List all operations
Returns a list of operations. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of operation objects.
curl https://api.overplane.dev/api/manufacturing/operation \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "operation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation": "workstation_example",
"description": "description_example",
"total_operation_time": 0,
"batch_size": 1,
"create_job_card_based_on_batch_size": false,
"is_corrective_operation": false,
"quality_inspection_template": "quality_inspection_template_example"
}
],
"has_more": false,
"total": 1
} /api/manufacturing/operation Create a operation
Creates a new operation object.
Body parameters
Default: 1
Default: false
Default: false
Returns
Returns the newly created operation object if the call succeeded.
curl https://api.overplane.dev/api/manufacturing/operation \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "operation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation": "workstation_example",
"description": "description_example",
"total_operation_time": 0,
"batch_size": 1,
"create_job_card_based_on_batch_size": false,
"is_corrective_operation": false,
"quality_inspection_template": "quality_inspection_template_example"
} /api/manufacturing/operation/{id} Update a operation
Updates the specified operation by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the operation to update.
Body parameters
Default: 1
Default: false
Default: false
Returns
Returns the updated operation object.
curl https://api.overplane.dev/api/manufacturing/operation/operation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"workstation":"workstation_example","description":"description_example"}' {
"id": "operation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation": "workstation_example",
"description": "description_example",
"total_operation_time": 0,
"batch_size": 1,
"create_job_card_based_on_batch_size": false,
"is_corrective_operation": false,
"quality_inspection_template": "quality_inspection_template_example"
} /api/manufacturing/operation/{id} Delete a operation
Permanently deletes a operation. This cannot be undone.
Path parameters
The identifier of the operation to delete.
Returns
Returns a confirmation that the operation has been deleted.
curl https://api.overplane.dev/api/manufacturing/operation/operation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "operation_abc123",
"deleted": true
} Line items
Child objects that belong to this operation. These are accessed via the parent's ID.
Sub Operation
Attributes
Endpoints
/api/manufacturing/sub-operation?parent_id={id} /api/manufacturing/sub-operation /api/manufacturing/sub-operation/{id} /api/manufacturing/sub-operation/{id} /api/manufacturing/sub-operation/reorder {
"id": "sub-operation_abc123",
"idx": 1,
"operation_id": "operation_id_example",
"operation": "operation_example",
"time_in_mins": 0,
"description": "description_example"
}