edit_subtask
Edit an existing subtask by specifying its parent task and the subtask to modify. Supports updating content, order, and rewards with absolute or relative value adjustments.
Instructions
Edit an existing subtask in LifeUp. You must specify both the parent task (using main_id, main_gid, or main_name) and the subtask to edit (using edit_id, edit_gid, or edit_name). Supports both absolute and relative value adjustments for coin and experience rewards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| main_id | No | Parent task ID (one of main_id, main_gid, or main_name is required) | |
| main_gid | No | Parent task group ID (one of main_id, main_gid, or main_name is required) | |
| main_name | No | Parent task name (one of main_id, main_gid, or main_name is required) | |
| edit_id | No | Subtask ID to edit (one of edit_id, edit_gid, or edit_name is required) | |
| edit_gid | No | Subtask group ID to edit (one of edit_id, edit_gid, or edit_name is required) | |
| edit_name | No | Subtask name to edit (one of edit_id, edit_gid, or edit_name is required) | |
| todo | No | Updated subtask content/description (optional, max 200 characters) | |
| order | No | Position/order of subtask in the list (optional) | |
| coin | No | Coin reward (optional, 0-999999) | |
| coin_var | No | Coin variance/randomness (optional) | |
| exp | No | Experience points reward (optional, 0-99999) | |
| coin_set_type | No | How to apply coin value: absolute (replace) or relative (add/subtract) | |
| exp_set_type | No | How to apply exp value: absolute (replace) or relative (add/subtract) | |
| auto_use_item | No | Automatically use/consume item rewards when subtask is completed (optional) | |
| item_id | No | Item ID for reward (optional) | |
| item_name | No | Item name for reward (optional) | |
| item_amount | No | Amount of item to reward (optional, 1-99) | |
| items | No | Array of item rewards (optional) |