# API again, createTask vs updateTask

**URL:** <https://kanboard.discourse.group/t/api-again-createtask-vs-updatetask/2306>\
**Category:** Open Discussions\
**Created:** [July 1, 2022, 6:01am UTC](https://kanboard.discourse.group/t/api-again-createtask-vs-updatetask/2306 "2022-07-01T06:01:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jovito](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/jovito/32/1126_2.png) [@jovito](https://kanboard.discourse.group/u/jovito)\
**Post date:** [July 1, 2022, 6:01am UTC](https://kanboard.discourse.group/t/api-again-createtask-vs-updatetask/2306/1 "2022-07-01T06:01:45Z")

</div>

Hi all, I am trying to trigger automatic POSTs from my local application to Kanboard as soon as certain dates are entered, e.g. a delivery date entered will shift the Kanboard task to the respective project column.

Now, the _createTask_ API procedure in fact allows me to define a column\_id, but _updateTask_ does not, according to documentation.

Am I overlooking anything?

Where in the php could I add this feature?

---

<div class="post-metadata">

**Author:** ![jakoubek](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/jakoubek/32/1121_2.png) [@jakoubek](https://kanboard.discourse.group/u/jakoubek)\
**Post date:** [July 1, 2022, 6:26am UTC](https://kanboard.discourse.group/t/api-again-createtask-vs-updatetask/2306/2 "2022-07-01T06:26:57Z")

</div>

You can’t move a task using the _updateTask_ procedure. For moving tasks you need the _moveTaskPosition_ procedure (see [Task API Procedures — Kanboard documentation](https://docs.kanboard.org/en/latest/api/task_procedures.html#movetaskposition)).

Sending an JSON like this successfully moves a task. Just make sure you have the IDs of all needed values beforehand (project, task, column, swimlane):

```auto
{
    "jsonrpc": "2.0",
    "method": "moveTaskPosition",
    "id": 117211800,
    "params": {
        "project_id": 4,
        "task_id": 12,
        "column_id": 15,
        "position": 1,
        "swimlane_id": 4
    }
}

```

---

<div class="post-metadata">

**Author:** ![jovito](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/jovito/32/1126_2.png) [@jovito](https://kanboard.discourse.group/u/jovito)\
**Post date:** [July 1, 2022, 7:28am UTC](https://kanboard.discourse.group/t/api-again-createtask-vs-updatetask/2306/3 "2022-07-01T07:28:37Z")

</div>

bingo, that’s perfect!!! thx, jo
