Create User

Create a User

🚧

Mandatory Fields

While all three fields above (password, email and phone) are marked mandatory, in reality either phone for a driver OR email/password pairs are mandatory - we need one of them to allow a user to login.

The Create User endpoint creates a new user entity.

📘

Optional return flags:

existing_user: true - user already existed and not created
undeleted_user: true - user was deleted and now undeleted

📘

What is User?

Users are the employees of the company. Usually they are the drivers using the native apps. Users with Admin rights can log in the web. Note that a dispatcher cannot create a user with Admin rights.

Users are identified uniquely by email or phone. If a phone or an email exist in the system the user would be returned and not created.

📘

Assigning a Team to a User

This needs to be done in a separate API call : Add User To Team

❗️

If a user that is uniquely identified by email or phone already exists with a different company, you have no access to this user and cannot create another

curl --include \
     --request POST \
     --header "Content-Type: application/json" \
     --data-binary "{ \"company_id\": 1, \"name\": \"mrs. kallie conroy\", \"email\": \"[email protected]\", \"password\": \"123456789\", \"phone\": \"+19174756306\", \"timestamp\":\"1414421210832\", \"access_token\":\"K2Pxkwvx6-3PtW44zvEV\", \"signature\":\"db00061fa75f869c968f72d48449e457ae06959a\"}" \
https://api.bringg.com/partner_api/users/
Language