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 */
    "project": "time rest"  /* Name of the project where you want to add a user */
}

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, invalid project"
}

Clone this wiki locally