For the complete documentation index, see llms.txt. This page is also available as Markdown.

TaskFieldDefaultValueSources

Introduction

TaskFieldDefaultValueSources define prefilled values for TaskFields.

Model Definition

Alias

defaultValueSource

Source Types

  • formFieldValue - Copies a value from another form field.

  • systemVariable - Resolves a value from a system variable.

Admin: Create

Create a new TaskFieldDefaultValueSource.

Definition

POST /api/administration/tasks-2/templates/fields/default-value-sources

Request Keys

Key
Type
Default
Description

source_type*

string

-

Selects one of the supported Source Types.

form_field_id*

integer

-

Target TaskField ID.

config

object

type default

Source-specific configuration.

source_entity_type

string | null

null

Morph alias of source entity (typically formField for field-value source).

source_entity_id

integer | null

null

Source entity ID (required with source_entity_type).

sort_number

integer

auto

Evaluation order per field.

Keys with * are required.

Example Request

Example Response

Admin: Update

Update an existing TaskFieldDefaultValueSource.

Definition

PUT /api/administration/tasks-2/templates/fields/default-value-sources/{defaultValueSource}

Route Parameters

Parameter
Type
Description

defaultValueSource

integer

Default value source ID.

Request Keys

Key
Type
Description

source_type

string

Selects one of the supported Source Types.

form_field_id

integer

New target field ID.

config

object

Updated source configuration.

source_entity_type

string | null

New source entity type.

source_entity_id

integer | null

New source entity ID.

sort_number

integer

New evaluation order.

Example Request

Example Response

Admin: Delete

Delete an existing TaskFieldDefaultValueSource.

Definition

DELETE /api/administration/tasks-2/templates/fields/default-value-sources/{defaultValueSource}

Route Parameters

Parameter
Type
Description

defaultValueSource

integer

Default value source ID.

Example Request

Example Response

Admin: List Source TaskFields

List accessible fields from administrable Forms and TaskTemplates that can provide a formFieldValue default value.

Definition

POST /api/administration/tasks-2/templates/fields/default-value-sources/form-field-value/form-fields

Request Keys

Key
Type
Default
Description

page

integer

1

Result page.

per_page

integer

API default

Results per page.

filter

object

{}

Standard Result Control filters, including form_type.

Behavior

  • Fields are returned only when the authenticated user can administer their parent Form or TaskTemplate.

  • Each preview uses the field name as title, the localized parent type as sub_title, and the parent title as description.

  • This endpoint uses count-less pagination, so total is null.

Example Request

Example Response

Admin: List Source TaskField Filters

List filters available for the source-field preview endpoint.

Definition

POST /api/administration/tasks-2/templates/fields/default-value-sources/form-field-value/form-fields/filters

Example Request

Example Response

Admin: List Source TaskField Filter Options

List options for one multi-select source-field filter.

Definition

POST /api/administration/tasks-2/templates/fields/default-value-sources/form-field-value/form-fields/filters/{filterKey}/options

Route Parameters

Parameter
Type
Description

filterKey

string

Multi-select filter key, for example form_id.

Request Keys

Key
Type
Default
Description

page

integer

1

Result page.

per_page

integer

API default

Results per page.

filter

object

{}

Filters applied before options are produced.

Behavior

This endpoint uses count-less pagination, so total is null.

Example Request

Example Response

Runtime Default Values for TaskExecutions

Resolve default values for one TaskExecution.

Definition

GET /api/tasks-2/executions/{taskExecution}/default-values

Route Parameters

Parameter
Type
Description

taskExecution

integer

Task execution ID

Example Request

Example Response

Last updated