The Job Card Time Log object
Attributes
Unique identifier for the object.
Default: 0
{
"id": "job-card-time-log_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"time_in_mins": 0,
"completed_qty": 0,
"employee": "employee_example",
"operation": "operation_example"
} /api/manufacturing/job-card-time-log?parent_id={id} List job card time logs by parent
Returns all job card time logs belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of job card time log objects belonging to the parent.
curl https://api.overplane.dev/api/manufacturing/job-card-time-log?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "job-card-time-log_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"time_in_mins": 0,
"completed_qty": 0,
"employee": "employee_example",
"operation": "operation_example"
}
],
"has_more": false,
"total": 1
} /api/manufacturing/job-card-time-log Create a job card time log
Creates a new job card time log object.
Body parameters
Default: 0
Returns
Returns the newly created job card time log object if the call succeeded.
curl https://api.overplane.dev/api/manufacturing/job-card-time-log \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example"}' {
"id": "job-card-time-log_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"time_in_mins": 0,
"completed_qty": 0,
"employee": "employee_example",
"operation": "operation_example"
} /api/manufacturing/job-card-time-log/{id} Update a job card time log
Updates the specified job card time log by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the job card time log to update.
Body parameters
Default: 0
Returns
Returns the updated job card time log object.
curl https://api.overplane.dev/api/manufacturing/job-card-time-log/job-card-time-log_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "job-card-time-log_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"time_in_mins": 0,
"completed_qty": 0,
"employee": "employee_example",
"operation": "operation_example"
} /api/manufacturing/job-card-time-log/{id} Delete a job card time log
Permanently deletes a job card time log. This cannot be undone.
Path parameters
The identifier of the job card time log to delete.
Returns
Returns a confirmation that the job card time log has been deleted.
curl https://api.overplane.dev/api/manufacturing/job-card-time-log/job-card-time-log_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "job-card-time-log_abc123",
"deleted": true
} /api/manufacturing/job-card-time-log/reorder Reorder job card time logs
Updates the sort order of job card time logs within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/manufacturing/job-card-time-log/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "job-card-time-log_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"from_time": "from_time_example",
"to_time": "to_time_example",
"time_in_mins": 0,
"completed_qty": 0,
"employee": "employee_example",
"operation": "operation_example"
}