The Workstation 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
{
"id": "workstation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation_name": "workstation_name_example",
"description": "description_example",
"hour_rate": 0,
"holiday_list": "holiday_list_example",
"production_capacity": 1,
"workstation_type": "workstation_type_example",
"plant_floor": "plant_floor_example",
"status": "draft",
"on_status_image": "on_status_image_example",
"off_status_image": "off_status_image_example",
"warehouse": "warehouse_example",
"total_working_hours": 0,
"disabled": false
} /api/manufacturing/workstation/{id} Retrieve a workstation
Retrieves the details of an existing workstation. Supply the unique workstation ID that was returned from a previous request.
Path parameters
The identifier of the workstation to retrieve.
Returns
Returns the workstation object if a valid identifier was provided.
curl https://api.overplane.dev/api/manufacturing/workstation/workstation_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "workstation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation_name": "workstation_name_example",
"description": "description_example",
"hour_rate": 0,
"holiday_list": "holiday_list_example",
"production_capacity": 1,
"workstation_type": "workstation_type_example",
"plant_floor": "plant_floor_example",
"status": "draft",
"on_status_image": "on_status_image_example",
"off_status_image": "off_status_image_example",
"warehouse": "warehouse_example",
"total_working_hours": 0,
"disabled": false
} /api/manufacturing/workstation List all workstations
Returns a list of workstations. 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 workstation objects.
curl https://api.overplane.dev/api/manufacturing/workstation \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "workstation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation_name": "workstation_name_example",
"description": "description_example",
"hour_rate": 0,
"holiday_list": "holiday_list_example",
"production_capacity": 1,
"workstation_type": "workstation_type_example",
"plant_floor": "plant_floor_example",
"status": "draft",
"on_status_image": "on_status_image_example",
"off_status_image": "off_status_image_example",
"warehouse": "warehouse_example",
"total_working_hours": 0,
"disabled": false
}
],
"has_more": false,
"total": 1
} /api/manufacturing/workstation Create a workstation
Creates a new workstation object.
Body parameters
Default: 1
Default: false
Returns
Returns the newly created workstation object if the call succeeded.
curl https://api.overplane.dev/api/manufacturing/workstation \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"workstation_name":"workstation_name_example"}' {
"id": "workstation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation_name": "workstation_name_example",
"description": "description_example",
"hour_rate": 0,
"holiday_list": "holiday_list_example",
"production_capacity": 1,
"workstation_type": "workstation_type_example",
"plant_floor": "plant_floor_example",
"status": "draft",
"on_status_image": "on_status_image_example",
"off_status_image": "off_status_image_example",
"warehouse": "warehouse_example",
"total_working_hours": 0,
"disabled": false
} /api/manufacturing/workstation/{id} Update a workstation
Updates the specified workstation by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the workstation to update.
Body parameters
Default: 1
Default: false
Returns
Returns the updated workstation object.
curl https://api.overplane.dev/api/manufacturing/workstation/workstation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"workstation_name":"workstation_name_example","description":"description_example"}' {
"id": "workstation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"workstation_name": "workstation_name_example",
"description": "description_example",
"hour_rate": 0,
"holiday_list": "holiday_list_example",
"production_capacity": 1,
"workstation_type": "workstation_type_example",
"plant_floor": "plant_floor_example",
"status": "draft",
"on_status_image": "on_status_image_example",
"off_status_image": "off_status_image_example",
"warehouse": "warehouse_example",
"total_working_hours": 0,
"disabled": false
} /api/manufacturing/workstation/{id} Delete a workstation
Permanently deletes a workstation. This cannot be undone.
Path parameters
The identifier of the workstation to delete.
Returns
Returns a confirmation that the workstation has been deleted.
curl https://api.overplane.dev/api/manufacturing/workstation/workstation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "workstation_abc123",
"deleted": true
} Line items
Child objects that belong to this workstation. These are accessed via the parent's ID.
Workstation Working Hour
Attributes
Endpoints
/api/manufacturing/workstation-working-hour?parent_id={id} /api/manufacturing/workstation-working-hour /api/manufacturing/workstation-working-hour/{id} /api/manufacturing/workstation-working-hour/{id} /api/manufacturing/workstation-working-hour/reorder {
"id": "workstation-working-hour_abc123",
"idx": 1,
"workstation_id": "workstation_id_example",
"start_time": "start_time_example",
"end_time": "end_time_example",
"enabled": true,
"hours": 0
}