# REST Resource: projects.locations.instances.tasks

- [Resource: Task](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks#Task)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks#Task.SCHEMA_REPRESENTATION)
  - [Status](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks#Task.Status)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks#METHODS_SUMMARY)

## Resource: Task

This service is available for customers who migrated SOAR to a customer managed project and have the Chronicle API enabled. Tasks - Chronicle SOAR tasks. Types of Tasks: general, case-spesific

| JSON representation |
|---|
| ``` { "name": string, "id": string, "createTime": string, "updateTime": string, "content": string, "dueTime": string, "title": string, "author": string, "lastAuthor": string, "assignee": string, "status": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks#Task.Status`), "resolver": string, "comment": string, "resolutionTime": string, "caseId": integer, "favorite": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The unique name(ID) of the task. Format: projects/{project}/locations/{location}/instances/{instance}/tasks/{task} |
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The unique ID of the task. |
| `createTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The creation time of the task. |
| `updateTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The last update time of the task. |
| `content` | `string` Required. The task content, limited to 4096 characters. |
| `dueTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The due time for the task in ms. When specified during task creation, must be in the future. Is optional as deadlines can exist without a specific scheduled time. |
| `title` | `string` Required. The task title, minimum length of 3 characters and maximum of 50 characters. |
| `author` | `string` Output only. The user who created the task. |
| `lastAuthor` | `string` Output only. The last editor of the task. |
| `assignee` | `string` Required. The assignee of the task. |
| `status` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks#Task.Status`)`` Required. The status of the task. todo change to task startus enum |
| `resolver` | `string` Output only. The user who resolved the task. |
| `comment` | `string` Required. Comment added during task resolution, limited to 4096 characters. |
| `resolutionTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The resolution time of the task in ms. |
| `caseId` | `integer (https://developers.google.com/discovery/v1/type-format format)` Optional. Associated case id (if task is related to a specific case) Can be optional as tasks may exist independently or be associated with a specific case. |
| `favorite` | `boolean` Optional. Determines whether the task is marked as favorite. |

### Status

The current status of the task.

| Enums ||
|---|---|
| `STATUS_UNSPECIFIED` | The task status is unspecified/unknown. |
| `PENDING` | The task status is pending. |
| `COMPLETED` | The task status is completed. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks/create` | Creates a new Task. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks/delete` | Deletes a Task. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks/get` | Gets a single Task. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks/list` | Lists Tasks. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.tasks/patch` | Updates an existing Task. |