Resource
task_definition
A reusable task definition template with custom outcome options
Configuration
nameString!RequiredDefinition name
descriptionStringOptionalOptional description
options[TaskDefinitionOption!]!RequiredOutcome options; must be empty for JOURNEY templates
kindTaskTemplateKind!OptionalSIMPLE (the default) or JOURNEY
Allowed values
SIMPLE — Completed by choosing one of the template's outcome options
JOURNEY — Completed by running the template's journey; the journey's declared outputs complete the task
journeyHandleStringOptionalHandle of a published journey; required for JOURNEY templates, not allowed for SIMPLE ones
journeyInputMappingJSONOptionalFor JOURNEY templates: an object from journey input key to a workflow expression template string. Every key must be one of the journey's inputs, and every required input must be mapped.
Input types
Fields for the structured values used in this resource’s configuration.
TaskDefinitionOptionInput
Input for a task definition option
labelString!RequiredDisplay label
valueString!RequiredMachine-readable value
Read-only values
Lifecycle
The CLI can create this resource. The platform assigns its id.
When replacement is needed, the existing resource is removed before its replacement is created.