jpierlot
6 years agoGuide
Create a board through API
Hello,
I would like to create a board through API but I get an error message:
curl -X POST \
> 'https://domain.lithium.com/restapi/vc/categories/id/<category_id>/nodes/type/key/board/add?board.id=test&board.title=title' \
> -H 'content-type: application/json' \
> -H 'li-api-session-key:SESSION_KEY'
<response status="error">
<error code="100">
<message>
Une erreur inattendue s'est produite.
</message>
</error>
</response>
When I do a get on /restapi/vc/categories/id/<category_id>/nodes/type/key/board/ it renders the list of boards but POST does not work.
Could someone help me please?
Thank you!
You can use V2 API to create board and add description as well.
Session Key
curl -X POST \ https://[COMMUNITY DOMAIN]/api/2.0/boards \ -H 'content-type: application/json' \ -H 'li-api-session-key: [SESSION KEY]' \ -d '{ "data": { "type": "board", "id": "DeveloperDiscussion", "conversation_style": "forum", "title": "Developer Discussions", "parent_category": { "id": "DevNetwork" } } }'