View Categories

Update User

Description: This API wil use to update the specific user in Quicker Learning.
URL:- https://apps.quickerlearning.com.com/api/user/update
Method: POST

AUTHORIZATION:
Type: Basic Auth
UserName: tenant_id,
Password:secret_key

HEADERS:
Accept: application/json

{
    “user_id”: 70,
    “firstname”: “Niklas”,
    “lastname”: “Johansson”,
    “personalnumber”: “714528596”,
    “email”: “niklas@quickerlearning.se”,
    “mobile_no”: “123456789”,
    “user_name”: “niklas@quickerlearning.se”,
    “company_id”: 26,
    “role_id”:7,
    “status”: “1”,
    “company_id”: [
            {
                “company_id”:26,
                “course”:[1],
                “package_ids”:[1]
            },
            {
                “company_id”:20,
                “course”:[1],
                “package_ids”:[1]
            }
    ],
    “update_company”: [
        {
            “old_company_id”:26,
            “new_company_id”:17
        }
    ]
}

Response Body:
{
“message”: “User Updated Successfully”,
“status”: 200
}

Note:

• Pass 0 for Active or 1 for Inactive on “Status” field.

• Nothing will be updated for users with the SuperAdmin role. And no other user’s role will be changed to SuperAdmin.

• We can only change the Admin role for a user who already has the Admin or AdminStudent role.

• We can only change the AdminStudent role for a user who already has the Admin role.

• We can’t change the courseleader role for any users.

• We can’t change the AdminSalesManager role for any users.

Other Response Body:
{
“message”: “You can’t change or update the SuperAdmin”,
“status”: 500
}
{
“message”: “You can’t change the Admin for this user”,
“status”: 500
}
{
“message”: “You can’t change the AdminStudent for this user”,
“status”: 500
}
{
“message”: “You can’t change the Courseleader for this user”,
“status”: 500
}
{
“message”: “You can’t change the AdminSalesManager for this user”,
“status”: 500
}

Snabbanslutning