CreatePossibleTask

Function: CreatePossibleTask()

function CreatePossibleTask(description, shortDescription, points, isActive, maxPerPeriod): Promise<Response<void>>

Defined in: src/actions/possible-task.tsx:70

Creates a new possible task with the specified parameters.

Parameters

description

string

The description of the possible task.

shortDescription

string

A short description of the possible task.

points

number

The points associated with the possible task.

isActive

boolean = true

Whether the possible task is active (default is true).

maxPerPeriod

The maximum number of times this task can be completed per period, or null if unlimited.

null | number

Returns

Promise<Response<void>>
  • A promise that resolves to a response object indicating success or failure.