{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/GoalAddSubgoalRequest", "title": "GoalAddSubgoalRequest", "type": "object", "required": [ "subgoal" ], "properties": { "subgoal": { "description": "The goal gid to add as subgoal to a parent goal", "type": "string", "example": "1331" }, "insert_before": { "description": "An id of a subgoal of this parent goal. The new subgoal will be added before the one specified here. `insert_before` and `insert_after` parameters cannot both be specified.", "type": "string", "example": "1331" }, "insert_after": { "description": "An id of a subgoal of this parent goal. The new subgoal will be added after the one specified here. `insert_before` and `insert_after` parameters cannot both be specified.", "type": "string", "example": "1331" } } }