---
title: Task templates and task
slug: task-templates-and-task
docTags: 
createdAt: 2023-07-05T11:08:43.526Z
---

```yaml
stoplight-id: xx6fncg9orkm1
```

If you have created some task templates in your backend environment and what from the client api choose for the task the template. Simply you can follow these steps:

### Real-world data mapping examples of most common cases

First of all, you need to get the Task template list using GET /client/api/v2/task/templates method:

```json
{
    "next_page": 0,
    "items": [
        {
            "title": "Tast template",
            "guid": "f889fbe9-9d9b-3c8a-8549-e321ee7e3e34",
            "systemId": 'TTL001'
        }
    ]
}
```

Then when you want to create the task simply in the task POST method you should assigned gotted guid or systemId value:

```json
{
    "title": "Task title",
    "plannedTime": "2022-07-22T12:12:12",
    "client": "f889fbe9-9d9b-3c8a-8549-e321ee7e3e34",
    "workspace": "f889fbe9-9d9b-3c8a-8549-e321ee7e3e34",
    "taskType": "f889fbe9-9d9b-3c8a-8549-e321ee7e3e34",
    "createdBy": "f889fbe9-9d9b-3c8a-8569-e321ee7e3e34",
    "user": "f889fbe9-9d9b-3c8a-8569-e321ee7e3e34",
    "systemId": "TSK001",
    "taskTemplate": "f889fbe9-9d9b-3c8a-8549-e321ee7e3e34"
}
```

:::BlockQuote
IMPORTANT: All the required information from the task template will be transfer and assigned to the task such as - files, materials, works and notes.
:::

