Deletes an action from your application.
https://help.tago.io/portal/en/kb/tagoio/actions Actions
If receive an error "Authorization Denied", check policy Action / Delete in Access Management.
const result = await Resources.actions.delete("action-id-123");
console.log(result); // Successfully Removed
Modifies an existing action.
https://help.tago.io/portal/en/kb/tagoio/actions Actions
If receive an error "Authorization Denied", check policy Action / Edit in Access Management.
const result = await Resources.actions.edit("action-id-123", {
name: "Updated Action",
active: false
});
console.log(result); // Successfully Updated
Retrieves detailed information about a specific action.
https://help.tago.io/portal/en/kb/tagoio/actions Actions
If receive an error "Authorization Denied", check policy Action / Access in Access Management.
const actionInfo = await Resources.actions.info("action-id-123");
console.log(actionInfo); // { id: 'action-id-123', name: 'My Action', ... }
Optional
queryObj: ActionQueryLists all actions from the application with pagination support. Use this to retrieve and manage actions in your application.
https://help.tago.io/portal/en/kb/tagoio/actions Actions
If receive an error "Authorization Denied", check policy Action / Access in Access Management.
const list = await Resources.actions.list({
page: 1,
fields: ["id", "name"],
amount: 10,
orderBy: ["name", "asc"]
});
console.log(list); // [ { id: '66ab7c62e5f0db000998ce42', name: 'Action Test', ...} ]
Description
Creates a new action in your application.
See
https://help.tago.io/portal/en/kb/tagoio/actions Actions
Example
If receive an error "Authorization Denied", check policy Action / Create in Access Management.