Tasks
Tasks are a way to communicate tasks that need to be done in a warehouse. Tasks can be assigned to a user and can have a deadline.
Attributes
Name | Type | Required | Description |
---|---|---|---|
idtask | integer | generated | Unique identifier for the task |
title | string | required | Title of the task |
description | string | optional | Detailed description of the task, can be null |
assigned_to_iduser | integer | optional | ID of the user to whom the task is assigned |
is_seen_by_assignee | boolean | optional | Indicates whether the assignee has seen the task |
deadline_date | datetime | optional | Deadline date for the task (e.g., "2025-03-04 00:00:00") |
deadline_time | time | optional | Specific deadline time for the task (e.g., "23:59:00") |
completed_at | datetime | optional | Date and time when the task was completed, null if not completed |
completed_by_iduser | integer | optional | ID of the user who completed the task, null if not completed |
created_by_iduser | integer | optional | ID of the user who created the task |
created_at | datetime | required | Date and time when the task was created |
updated_at | datetime | required | Date and time when the task was last updated |
Get all tasks
Retrieve a list of all tasks.
Filters
You can filter the tasks with the following parameter. Add this filter as a querystring parameter to the URL.
Attribute | Description | Example |
---|---|---|
completed | Get tasks that are completed (true) or not completed (false) | true, false |
Get single task
Retrieve details of a specific task by its ID.
Create a task
Create a new task. Only the listed fields can be provided; other fields like idtask, created_at, etc., are automatically generated by the system.
Attributes
Name | Type | Required | Description |
---|---|---|---|
title | string | required | Title of the task |
description | string | optional | Detailed description of the task |
deadline_date | date | optional | Deadline date for the task (e.g., "2025-03-04") |
deadline_time | time | optional | Specific deadline time for the task (e.g., "23:59:00") |
assigned_to_iduser | integer | optional | ID of the user to whom the task is assigned |
Update a task
Update an existing task. Only the listed fields can be modified. Note that deadline_date is required if deadline_time is provided.
Attributes
Name | Type | Required | Description |
---|---|---|---|
title | string | optional | Title of the task |
description | string | optional | Detailed description of the task |
deadline_date | date | required if deadline_time is provided | Deadline date for the task (e.g., "2025-03-05") |
deadline_time | time | optional | Specific deadline time for the task (e.g., "17:00:00") |
assigned_to_iduser | integer | optional | ID of the user to whom the task is assigned |
Delete a task
Delete a specific task by its ID.
Complete a task
Mark a task as completed. This sets completed_at to the current timestamp and completed_by_iduser to the user performing the action (assumed from authentication context). No request body is required.
Uncomplete a task
Revert a task’s completion status. This sets completed_at and completed_by_iduser back to null. No request body is required.