The Task Object
This is an object representing a task object inside your space.
Properties
-
id
numberNumeric ID of your task
-
name
stringGiven name of your task
-
description
stringA brief description of your task for your editors
-
task_type
stringDefault:
webhook
; Currently available:webhook
-
last_execution
stringDate and time of last execution (Format: YYYY-mm-dd HH:MM)
-
lambda_code
stringBeta: Lambda function code
-
last_response
stringLast execution response log
-
webhook_url
stringURL of webhook that should be called when tasks is being executed
-
user_dialog
objectUser dialog configuration
Example Object
{
"task": {
"id": 45130,
"name": "My Task",
"description": "A task for manual firing",
"task_type": "webhook",
"last_execution": "2024-01-23T09:58:01.815Z",
"lambda_code": null,
"last_response": null,
"webhook_url": "https://www.storyblok.com",
"user_dialog": {
"name": {
"type": "text",
"display_name": "What's your name?"
},
"environment": {
"type": "option",
"options": [
{
"name": "Dev",
"value": "dev"
},
{
"name": "Staging",
"value": "staging"
}
],
"display_name": "Which environment?"
}
}
}
}