Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
Edbergarn edited this page Sep 17, 2019 · 5 revisions

URL POST /api/add

Add user to project.

Request

{
    "token": "CB23C3395153D2414CE7FF22F925776DBF72BF309",   /* Login token */
    "username": "Emil"               /* Username of the person to be added */
}

Response success

{
    "success": true,        /* If the action was succesfull */
    "user_added": true      /* If the username was valid and user was added */
}

Response Failure

{
    "success": false,
    "reason": "Invalid token, invalid username"
}

Clone this wiki locally