# Create task in board from api

**URL:** <https://forum.mattermost.com/t/create-task-in-board-from-api/14310>\
**Category:** Troubleshooting\
**Created:** [October 24, 2022, 5:04pm UTC](https://forum.mattermost.com/t/create-task-in-board-from-api/14310 "2022-10-24T17:04:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kjbanks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/kjbanks/32/6013_2.png) [@Kjbanks](https://forum.mattermost.com/u/Kjbanks)\
**Post date:** [October 24, 2022, 5:04pm UTC](https://forum.mattermost.com/t/create-task-in-board-from-api/14310/1 "2022-10-24T17:04:34Z")

</div>

Hi Guys - going round in circles searching so psle help me with a link if I have missed it. Looking for a way to create a task in a board ? either via api method (only see posts ? and channels not boards ? ) or via a webhook ? plse share info and direct this lost chap : -)

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [October 31, 2022, 10:53am UTC](https://forum.mattermost.com/t/create-task-in-board-from-api/14310/2 "2022-10-31T10:53:48Z")

</div>

Hi Kjbanks and welcome to the Mattermost forums!

I’m not sure I can follow you on that, sorry. You can just click on the “New” buttons to create a new card in a board. What do you mean with “task”?  
Here’s an overview of the Focalboard API:

[https://htmlpreview.github.io/?https://github.com/mattermost/focalboard/blob/main/server/swagger/docs/html/index.html](https://htmlpreview.github.io/?https://github.com/mattermost/focalboard/blob/main/server/swagger/docs/html/index.html)

---

<div class="post-metadata">

**Author:** ![Kjbanks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/kjbanks/32/6013_2.png) [@Kjbanks](https://forum.mattermost.com/u/Kjbanks)\
**Post date:** [November 3, 2022, 5:57am UTC](https://forum.mattermost.com/t/create-task-in-board-from-api/14310/3 "2022-11-03T05:57:37Z")

</div>

Thanx so much for the response and the link. Trust me spent a fair amount of time trying to understand it and get it working. Here is where I am at:

Docs unclear that the bare url needs to also include the path:

```auto
/plugins/focalboard

```

Next issue is the properties that can be used plse ie the fields etc \>?

```auto
[
    {
        "schema": 1,
        "boardId": "xxxxxxx",
        "parentId": "xxxxxxx",
        "createdBy": "",
        "modifiedBy": "",
        "type": "card",
        "fields": {
            "icon": "🏥",
            "properties": {
                "a972dc7": "ebesc7ute"
            },
            "contentOrder": [],
            "isTemplate": false
        },
        "title": "This is a postman block 2",
        "createAt": 1666867946439,
        "updateAt": 1666867946439,
        "deleteAt": 0,
        "limited": false
    }
]

```
