# Tasks

## Get reactive work order tiles

 - [POST /api/v2/maintenance/reactiveworkorders/basic](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v2~1maintenance~1reactiveworkorders~1basic/post.md): Returns a paginated list of reactive work order tiles for the current user within the account context.
            
Behavior:
- Validates account and user context
- Supports pagination using the start query parameter
- Retrieves reactive work order tile data
- Returns structured reactive work order tile response data
- Logs the action as a reactive work orders tile view

## Get pending tasks for My Work

 - [POST /api/v2/maintenance/mywork/pendingtasks/list](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v2~1maintenance~1mywork~1pendingtasks~1list/post.md): Returns a filtered and paginated list of pending tasks assigned to the current user.
            
Behavior:
- Validates account and user context
- Supports pagination using the start query parameter
- Applies grouping filter using GroupCode from request body
- Retrieves pending tasks assigned to the user
- Returns structured pending task list response data
- Logs the action as a pending tasks grid view

## Get user tasks

 - [POST /api/v1/tm/users/me/tasks](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1users~1me~1tasks/post.md): Returns tasks assigned to the current user within the account context.
            
Behavior:
- Validates account and user context
- Applies filtering using request parameters
- Retrieves tasks assigned to the user
- Returns structured task response data
- Logs the action as my tasks view

## Get task details

 - [GET /api/v1/tm/tasks/{taskid}](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D/get.md): Returns detailed information for the specified task within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Retrieves detailed task information
- Returns structured task detail response data
- Logs the action as task details view

## Get task history

 - [GET /api/v1/tm/tasks/{taskid}/history](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D~1history/get.md): Returns the history of actions performed on the specified task within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Retrieves task history records
- Returns structured task history response data
- Logs the action as task history view

## Get request details

 - [GET /api/v1/tm/users/me/requests/{requestId}](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1users~1me~1requests~1%7Brequestid%7D/get.md): Returns detailed information for the specified user request within the current account context.
            
Behavior:
- Validates the request belongs to the account
- Retrieves detailed request information
- Returns structured request detail response data
- Logs the action as a request details view

## Complete a task

 - [POST /api/v1/tm/tasks/{taskid}/complete](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D~1complete/post.md): Marks the specified task as completed within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Processes task completion using provided action details
- Updates the task status to completed
- Returns the updated task response data
- Logs the action as task completed

## Close a task

 - [POST /api/v1/tm/tasks/{taskid}/close](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D~1close/post.md): Closes the specified task within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Processes task closure using provided action details
- Updates the task status to closed
- Returns the updated task response data
- Logs the action as the task closed

## Complete and close a task

 - [POST /api/v1/tm/tasks/{taskid}/completeandclose](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D~1completeandclose/post.md): Marks the specified task as completed and closed within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Processes completion and closure using provided action details
- Updates the task status to completed and closed
- Returns the updated task response data
- Logs the action as task completed and closed

## Get task summary counts

 - [GET /api/v1/tm/tasks/summary](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1summary/get.md): Returns aggregated task counts for the current user within the account context.
            
Behavior:
- Validates account and user context
- Retrieves task count metrics for the user
- Returns structured task dashboard summary data
- Logs the action as task count view

## Reopen a task

 - [POST /api/v1/tm/tasks/{taskid}/reopen](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D~1reopen/post.md): Reopens the specified task within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Reassigns and reopens the task using provided details
- Updates the task status to reopened
- Returns the updated task response data
- Logs the action as the task reopened

## Get active task labors

 - [POST /api/v1/tm/tasks/{taskId}/activelabors](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D~1activelabors/post.md): Returns the list of active labor entries associated with the specified task within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Retrieves active labor records using provided request details
- Returns structured task labor response data
- Logs the action as an active task labor view

## Stop task labors

 - [POST /api/v1/tm/tasks/{taskId}/stoplabors](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1tasks~1%7Btaskid%7D~1stoplabors/post.md): Stops active labor entries associated with the specified task within the current account context.
            
Behavior:
- Validates account and user context
- Verifies the task belongs to the account
- Stops active labor records using the provided labor details
- Updates task labor status accordingly
- Returns the updated task response data
- Logs the action as task laborers stopped

## Get user request list

 - [GET /api/v1/tm/users/me/requests/list](https://zonedevelopersdocumentationv1.redocly.app/apis/tasks/paths/~1api~1v1~1tm~1users~1me~1requests~1list/get.md): Returns a paginated list of service requests created by the current user within the account context.
            
Behavior:
- Validates account and user context
- Supports pagination using the start query parameter
- Retrieves service requests associated with the user
- Returns structured service request list response data
- Logs the action as request list view

