Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / General

POST api user to board

POST api user to board

Wekan / General · January 13, 2020 at 8:41pm

If, through the api, I the create boards with lists and cards, in order for users to see those boards, I need to post the users to a board. I seem to have the syntax correct but am not getting a payload back from node.js . I get no error in the api and the boards, lists and cards get created but only the admin user whose token I am using can see them, just an empty data return (specifically a single empty object (is that the correct response)? When I look up the user I am trying to add to the board, I do not see the board I was trying to add them to. Is there an endpoint that shows either all the users for a board or all the boards for a user?

Is there any way to determine what its doing if I am not getting an error back? If I post the boards with lists and cards the lead admin can see it. If they invite an existing user (in the GUI) (the other user (the only other user in the system) is chosable, then that user indicates they failed to get an e-mail but it says they joined and when you switch logins and login in as the other user you see the board with an accept deny prompt super imposed. But when you look up that user you do not see board accepted.

How do I get error messages? How do I see board a user has accepted? What else can I do to troubleshoot this. the body I am user is isadmin false, commentsonly false, no comments false. url is api/boards/h3F93g2YviwC3J7KJ/members/SXLP3KJme9d4uCo5q/add

What else can I do to troubleshoot this? where is the log file that show the error? Thanks again


January 13, 2020 at 9:15pm

AFAIK when adding user to board with API, user does not need to accept joining board, it's already accepted with API call.

    • reply
    • like

    You can check exact behaviour of REST API at code wekan/models/* and if there is something missing, please send pull request

      • reply
      • like

      when I use the api of the lead admin yes it does work but it does indeed require that the user getting the invitation has to accept the invitation to see the boards invited too. That part is clear.

        Edited
        • reply
        • like

        What I do not understand is the nature of the api call returning an empty object. I do not see a 400 or 500. just an object with nothing inside. What does that mean?

          • reply
          • like