Endpoint: PUT /tasks/move
Body:
taskIds
: Array of UUID
sourceId
: UUID of list or parent task of tasks
orderIntent
Insert this task at the right place in the list.
intent
string: start
, end
, before
, or after
taskId
UUID (only used for before and after intent)Response:
status
: 200 for successMoves a task or a set of tasks to a new position on a list. The sourceId can either be the id of the list that the tasks are on, or the id of the parent task when the taskIds are subtasks.
Example request:
curl -x PUT <https://api.height.app/tasks/move> \\
-H "Authorization: api-key secret_1234" \\
-H "Content-Type: application/json" \\
-d '{"taskIds": ["0c364c36-1fcc-4f1d-a6f7-340ef931d2a0"], "taskId": {"intent": "end"}, "sourceId":"10e3583d-3a7e-465f-94a6-e33a6faeeb3b"}'