Constructor
# new TaskTemplateSubTaskTemplates(client, taskTemplateId)
Endpoint constructor
Parameters:
Name | Type | Description |
---|---|---|
client |
Client
|
|
taskTemplateId |
String
|
The id of the task template. |
- See:
-
- [TaskBundles in Awork API Docs](https://openapi.awork.com/#/TaskBundles)
View Source endpoints/TaskTemplateSubTaskTemplates.js, line 9
Classes
Methods
# async create(subTaskTemplate) → {Promise.<SubTaskTemplate>}
Creates a new subtask template.
Parameters:
Name | Type | Description |
---|---|---|
subTaskTemplate |
SubTaskTemplateCreateModel
|
The model to create the subtask template. |
Promise.<SubTaskTemplate>
# async delete(subtaskTemplateId) → {Promise.<void>}
Deletes a subtask template for a task template with the specified id. To access the task template, 'write' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name | Type | Description |
---|---|---|
subtaskTemplateId |
String
|
The id of the subtask template. |
Promise.<void>
# async get(subTaskTemplateId) → {Promise.<SubTaskTemplate>}
To access the task template, 'read' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name | Type | Description |
---|---|---|
subTaskTemplateId |
String
|
The id of the subtask template id. |
Promise.<SubTaskTemplate>
# async list(optionsopt) → {Promise.<Array.<SubTaskTemplate>>}
To access the task template, 'read' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options. |
Promise.<Array.<SubTaskTemplate>>
# async update(subTaskTemplateId, subTaskTemplate) → {Promise.<SubTaskTemplate>}
Updates a subtask template for a task template with the specified id.
To access the task template, 'write' permissions on the 'project-planning-data' feature or on the 'project-manage-config' feature are required.
Parameters:
Name | Type | Description |
---|---|---|
subTaskTemplateId |
String
|
The id of the subtask template. |
subTaskTemplate |
SubTaskTemplateUpdateModel
|
The model to update the subtask template. |
Promise.<SubTaskTemplate>