Constructor
# new ProjectTemplateActions(client, projectTemplateId, automationId)
Endpoint constructor
Parameters:
Name | Type | Description |
---|---|---|
client |
Client
|
|
projectTemplateId |
String
|
The id of the project. |
automationId |
String
|
The id of the automation. |
- See:
-
- [ProjectTemplateActions in Awork API Docs](https://openapi.awork.com/#/ProjectTemplateActions)
Classes
Methods
# async create(action) → {Promise.<Action>}
Creates an action for a specific automation of a projecttemplate including all its values. The user needs 'write' permissions of the feature 'project-manage-config' to create action data.
Parameters:
Name | Type | Description |
---|---|---|
action |
ActionCreateModel
|
The model to create an action. |
Promise.<Action>
# async delete(actionId) → {Promise.<void>}
Deletes an action for a specific automation of a projecttemplate including all its values. The user needs 'write' permissions of the feature 'project-manage-config' to delete action data.
Parameters:
Name | Type | Description |
---|---|---|
actionId |
String
|
The id of the action. |
Promise.<void>
# async get(actionId) → {Promise.<Action>}
Returns a specific action for a specific automation of a projecttemplate including all its values. The user needs 'read' permissions of the feature 'project-manage-config' to view action data.
Parameters:
Name | Type | Description |
---|---|---|
actionId |
String
|
The id of the action. |
Promise.<Action>
# async list(optionsopt) → {Promise.<Array.<Action>>}
Returns all actions for a specific automation of a project template including all its values. The user needs 'read' permissions of the feature 'project-manage-config' to view action data.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options. |
Promise.<Array.<Action>>
# async update(actionId, action) → {Promise.<Action>}
Updates a specifc action of an automation of a projecttemplate.
Returns an updated action for a specific automation of a projecttemplate including all its values. The user needs 'write' permissions of the feature 'project-manage-config' to update action data.
Parameters:
Name | Type | Description |
---|---|---|
actionId |
String
|
The id of the action. |
action |
ActionUpdateModel
|
The model to update an action. |
Promise.<Action>