Folder actions
Actions allow real-time communication through HTTP requests.
These device actions are easy to use and very suitable when you want to use Action batches in your content.
- They are usually triggered by an event like a command being sent to a device.
- When that event occurs, the device makes an HTTP request to the URL configured for the action.
- To separate API calls from each other, you have to create individual API keys for each action.
Add action - Folder
Required
-
Name
Here you can name your folder action -
Event ID
An "event ID" for an action call is a unique identifier assigned to each specific event or action that triggers the action.
• It helps to track and manage different events sent by the actions to your system.
• This ID allows you to identify and handle each event individually, ensuring that you can properly process and respond to the data or action associated with that event.
• Essentially, it's like a reference number that helps you organize and understand the flow of information coming from actions.This event ID must be individual. -
Action types
Force syncWith this action you can force the selected shared folders to sync
Upload fileWith this action you can upload a file into a folder.
-
Target type
You can choose All, Device, Device Group or Device tag as target type. -
Target
Select the target channel for the action(Later it will be more than 1 target)
Optional
-
Teams
Here you can select teams to manage and see the datasourceThis option is only available if the customer has at least one team available.
How to trigger action?
Create an API key
Here you can read more about the API key creation: MISSING LINK
Generate example link
By clicking on the Generate example link
button a modal will open.
Here's what you need to fill in the Generate example link
in order to successfully complete the action.
-
API key ⟶
Always required
An API key is essential for a webhook call as it serves as a unique identifier, ensuring that the request is authenticated and authorized. This helps maintain security by verifying that the request is coming from a trusted source, preventing unauthorized access and potential misuse of the webhook. -
File content ⟶
Base64 text of the file
Here you have to put here the Base64 text of the file
Upload file | Force sync | |
---|---|---|
API key | ✔️ | ✔️ |
File name | ✔️ | ☓ |
File content | ✔️ | ☓ |
Overwrite existing | ✔️ | ☓ |
Valid from | ✔️ | ☓ |
Valid to | ✔️ | ☓ |
After you filled all the necessary information, you can decide what do you wish to do with the action:
-
Copy link
After you filled every necessary boxes, you can create a webhook call link, that you can use inside contents as touch actions. -
Test
After you filled every necessary boxes, you can test the action on the selected target.
Ⓘ CLICK HERE FOR RELATED ARTICLES