EditPossibleTaskAction
Function: EditPossibleTaskAction()
function EditPossibleTaskAction(taskId, description, shortDescription, points, isActive, maxPerPeriod): Promise<Response<void>>
Defined in: src/actions/possible-task.tsx:131
Edits an existing possible task with the specified parameters.
Parameters
taskId
string
The ID of the possible task to edit.
description
string
The new description of the possible task.
shortDescription
string
A new short description of the possible task.
points
number
The new points associated with the possible task.
isActive
boolean = true
Whether the possible task is active (default is true).
maxPerPeriod
The new 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.