Use the Task Manager to create tasks that trigger a webhook. Tasks can be run manually by users with the relevant permissions.
Example use cases:
- Trigger the build process of a static website (SSG) using a build hook on the deployment platform
- Execute a custom serverless function that leverages Storyblok’s Management API to, for example, sync content from one space to another
Setup
Once the Task Manager app has been installed, go to Tasks and click + Create Task. A name and an endpoint to send the POST request to are required. Optionally, provide a description.
Custom user dialog
Optionally, configure a custom user dialog that appears before the task is run.
Provide a JSON object in the designated field. Example:
{
"project_name": {
"type": "text",
"display_name": "What is the project name?"
},
"environment": {
"type": "option",
"options": [
{
"name": "Development",
"value": "dev"
},
{
"name": "Production",
"value": "prod"
}
],
"display_name": "Which environment?"
}
}Supported types are text and option.
The provided user input is included in the payload of the POST request under the dialog_values property.