_edit
Modify the name of a Task Type.
Parameters
name
The name given to the chosen task.
id
The id of the chosen task.
Example
FM_api('TaskType_edit', ['id' => '0', 'name' => 'test task type success']);
Results
On Success
Upon renaming a Task Type from "test task type" to "test task type success"
{"ok":1,"id":0,"task_id":30004}
On Failure
If you were to press "Edit Type" but leave the dialog box blank
{"error":"invalid or missing parameter: name"}
Last updated