Class

TaskBundleTaskTemplates

TaskBundleTaskTemplates(client, taskBundleId)

Class corresponding to Aworks tasktemplates related part of the TaskBundles Endpoints
Constructor

# new TaskBundleTaskTemplates(client, taskBundleId)

Endpoint constructor
Parameters:
Name Type Description
client Client
taskBundleId String The id of the task bundle.
See:
  • [TaskBundles in Awork API Docs](https://openapi.awork.com/#/TaskBundles)

View Source endpoints/TaskBundleTaskTemplates.js, line 9

Classes

TaskBundleTaskTemplates

Methods

# async create(taskTemplate) → {Promise.<TaskTemplate>}

Creates a new task template for the task bundle with the specified id.
Parameters:
Name Type Description
taskTemplate TaskTemplateCreateModel The model used to create a new task template.

View Source endpoints/TaskBundleTaskTemplates.js, line 62

Promise.<TaskTemplate>

# async delete(taskTemplateId) → {Promise.<void>}

Deletes the task template for the task bundle with the specified id.
Parameters:
Name Type Description
taskTemplateId String The id of the task template.

View Source endpoints/TaskBundleTaskTemplates.js, line 89

Promise.<void>

# async get(taskTemplateId) → {Promise.<TaskTemplate>}

Returns the task template of the task bundle with the specified id.
Parameters:
Name Type Description
taskTemplateId String The id of the task template.

View Source endpoints/TaskBundleTaskTemplates.js, line 27

Promise.<TaskTemplate>

# async list(optionsopt) → {Promise.<Array.<TaskListTemplate>>}

Returns all task templates of the task bundle with the specified id.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options.

View Source endpoints/TaskBundleTaskTemplates.js, line 38

Promise.<Array.<TaskListTemplate>>

# async update(taskTemplateId, taskTemplate) → {Promise.<TaskTemplate>}

Updates the task template for the task bundle with the specified id.
Parameters:
Name Type Description
taskTemplateId String The if of the task template.
taskTemplate TaskTemplateUpdateModel The model to update a task template.

View Source endpoints/TaskBundleTaskTemplates.js, line 78

Promise.<TaskTemplate>