# \TaskApi
All URIs are relative to *http://localhost*
[**delete_delete_task**](TaskApi.md#delete_delete_task) | **DELETE** /api/tasks/{id} | Delete an existing task record
[**get_get_task**](TaskApi.md#get_get_task) | **GET** /api/tasks/{id} | Returns one task
[**get_get_tasks**](TaskApi.md#get_get_tasks) | **GET** /api/tasks | Returns a collection of tasks
[**get_tasks_timesheets**](TaskApi.md#get_tasks_timesheets) | **GET** /api/tasks/{id}/timesheets | Returns a collection of timesheets for one task
[**patch_assign_task**](TaskApi.md#patch_assign_task) | **PATCH** /api/tasks/{id}/assign | Assign a task to the current user
[**patch_close_task**](TaskApi.md#patch_close_task) | **PATCH** /api/tasks/{id}/close | Close a task for the current user
[**patch_kimaiplugin_taskmanagement_api_task_meta**](TaskApi.md#patch_kimaiplugin_taskmanagement_api_task_meta) | **PATCH** /api/tasks/{id}/meta | Sets the value of a meta-field for an existing task
[**patch_log_task**](TaskApi.md#patch_log_task) | **PATCH** /api/tasks/{id}/log | Logs work for a task record
[**patch_patch_task**](TaskApi.md#patch_patch_task) | **PATCH** /api/tasks/{id} | Update an existing task
[**patch_reopen_task**](TaskApi.md#patch_reopen_task) | **PATCH** /api/tasks/{id}/reopen | Reopens a task for the current user
[**patch_start_task**](TaskApi.md#patch_start_task) | **PATCH** /api/tasks/{id}/start | Start working on a task
[**patch_stop_task**](TaskApi.md#patch_stop_task) | **PATCH** /api/tasks/{id}/stop | Stops a task record for the current user
[**patch_unassign_task**](TaskApi.md#patch_unassign_task) | **PATCH** /api/tasks/{id}/unassign | Unassign a task from the current user
[**post_post_task**](TaskApi.md#post_post_task) | **POST** /api/tasks | Creates a new Task
## delete_delete_task
> delete_delete_task(id)
Delete an existing task record
### Parameters
**id** | **String** | Task record ID to delete | [required] |
### Return type
(empty response body)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_get_task
> models::Task get_get_task(id)
Returns one task
### Parameters
**id** | **String** | Task ID to fetch | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_get_tasks
> Vec<models::Task> get_get_tasks(search_term, customers_left_square_bracket_right_square_bracket, projects_left_square_bracket_right_square_bracket, activities_left_square_bracket_right_square_bracket, tags, users_left_square_bracket_right_square_bracket, teams_left_square_bracket_right_square_bracket, status_left_square_bracket_right_square_bracket, page_size, page, size, order, order_by)
Returns a collection of tasks
Attention: This is a GET request, you can pass in every field of the form as query parameter. Array values need to be written like this: /api/tasks?projects[]=1&projects[]=2
### Parameters
**search_term** | Option<**String**> | Free search term | |
**customers_left_square_bracket_right_square_bracket** | Option<**String**> | Customer IDs | |
**projects_left_square_bracket_right_square_bracket** | Option<**String**> | Project IDs | |
**activities_left_square_bracket_right_square_bracket** | Option<**String**> | Activity IDs | |
**tags** | Option<**String**> | Comma separated list of tag names | |
**users_left_square_bracket_right_square_bracket** | Option<**String**> | User IDs | |
**teams_left_square_bracket_right_square_bracket** | Option<**String**> | Team IDs | |
**status_left_square_bracket_right_square_bracket** | Option<**String**> | One or more status. Allowed values: pending, progress, closed (default: pending and progress) | |
**page_size** | Option<**String**> | DEPRECATED: The amount of entries for each page (default: 50) | |
**page** | Option<**String**> | The page to display, renders a 404 if not found (default: 1) | |
**size** | Option<**String**> | The amount of entries for each page (default: 50) | |
**order** | Option<**String**> | The result order. Allowed values: ASC, DESC (default: DESC) | |
**order_by** | Option<**String**> | The field by which results will be ordered. Allowed values: title, customer, project, activity, description, status, user, begin, end, team (default: end) | |
### Return type
[**Vec<models::Task>**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_tasks_timesheets
> Vec<models::TimesheetCollectionExpanded> get_tasks_timesheets(id)
Returns a collection of timesheets for one task
### Parameters
**id** | **String** | | [required] |
### Return type
[**Vec<models::TimesheetCollectionExpanded>**](TimesheetCollectionExpanded.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_assign_task
> models::Task patch_assign_task(id)
Assign a task to the current user
Assign a currently unassigned task to the current user
### Parameters
**id** | **String** | Task ID to update | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_close_task
> models::Task patch_close_task(id)
Close a task for the current user
Closes an assigned task for the current user
### Parameters
**id** | **String** | Task ID to close | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_kimaiplugin_taskmanagement_api_task_meta
> models::Task patch_kimaiplugin_taskmanagement_api_task_meta(id, patch_kimaiplugin_expenses_api_expense_meta_request)
Sets the value of a meta-field for an existing task
### Parameters
**id** | **String** | Task record ID to set the meta-field value for | [required] |
**patch_kimaiplugin_expenses_api_expense_meta_request** | Option<[**PatchKimaipluginExpensesApiExpenseMetaRequest**](PatchKimaipluginExpensesApiExpenseMetaRequest.md)> | | |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_log_task
> models::TimesheetExpanded patch_log_task(id, task_log_work_form)
Logs work for a task record
### Parameters
**id** | **String** | Task ID to log times for | [required] |
**task_log_work_form** | [**TaskLogWorkForm**](TaskLogWorkForm.md) | | [required] |
### Return type
[**models::TimesheetExpanded**](TimesheetExpanded.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_patch_task
> models::Task patch_patch_task(id, task_edit_form)
Update an existing task
Update an existing task, you can pass all or just a subset of all attributes
### Parameters
**id** | **String** | Task ID to update | [required] |
**task_edit_form** | [**TaskEditForm**](TaskEditForm.md) | | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_reopen_task
> models::Task patch_reopen_task(id)
Reopens a task for the current user
Reopens an assigned task for the current user
### Parameters
**id** | **String** | Task ID to reopen | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_start_task
> models::Task patch_start_task(id)
Start working on a task
### Parameters
**id** | **String** | Task ID to start | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_stop_task
> models::Task patch_stop_task(id)
Stops a task record for the current user
### Parameters
**id** | **String** | Task ID to stop | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## patch_unassign_task
> models::Task patch_unassign_task(id)
Unassign a task from the current user
Unassign a currently assigned task from the current user
### Parameters
**id** | **String** | Task ID to update | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## post_post_task
> models::Task post_post_task(task_edit_form)
Creates a new Task
Creates a new task and returns it afterwards
### Parameters
**task_edit_form** | [**TaskEditForm**](TaskEditForm.md) | | [required] |
### Return type
[**models::Task**](Task.md)
### Authorization
[bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)