mirror of
https://github.com/plankanban/planka.git
synced 2026-02-26 03:21:55 +03:00
Request Planka API with cURL #490
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @staze0 on GitHub (May 3, 2024).
Hello,
I try to automate things in Planka and between my other tools and Planka so I dig into the API but I am struggling with modification requests (here card creation, but I have tried other modification request too).
My configuration is:
Here a sample of my tests.
We can see the
boardIdandlistId.-> boardId = 1202247906392802324
-> listId = 1202252203985732663
ecc45c7a9e/server/config/routes.js) / Result : NOK/api/lists/<listId>I am getting thisSo, I am wondering if anyone have already done this kind of thing with positive result and how if it is the case? I am aware of the documentation about API (https://docs.planka.cloud/docs/category/api) but I want to make it simple with request that can be done in almost every automation tool.
Thanks in advance for the help.
@meltyshev commented on GitHub (May 3, 2024):
Hi! I've just tried to create a card and this worked for me:
You seem to be referring to a 2 year old commit, the actual routes are here: https://github.com/plankanban/planka/blob/master/server/config/routes.js.
There is no such endpoint, all lists can be retrieved by querying the entire board. But we've already added it in the v2 :)
@staze0 commented on GitHub (May 5, 2024):
Hello @meltyshev
Thank you for your time and explanation. I step back and realize that even if my account was "Project Manager" of the project, he was not able to do anything on boards. After I add the rights to modify on boards, I was able to do what I want to do with cURL and web requests.
In conclusion, I consider my problem as resolved but maybe the error message need to be modify to specify that rights is not good because here I had an error message that the listId does not exist. It is purely details but if I had a message like "Your user do not have right to modify board/lists/whatever", I figured out the solution much faster.
Thanks again.