Add new admin

POST /api/admin/addAdministrator/

Request

Header Type Description
Authorization string Required. Bearer token to authenticate the admin.
Body Type Description
username string Required. Username of the new administrator.
password string Required. Password of the new administrator.

Response

Response Type Description
Username string Username of the new administrator.
Password string Hashed password of the new administrator.

Response Example:-

{
  "Username": "sup.admin",
  "Password": "dgbndljgnkdgmkdmgrtgvd"
}

Add new corporate trainee

POST /api/admin/addCorporateTrainee/

Request

Header Type Description
Authorization string Required. Bearer token to authenticate the admin.
Body Type Description
username string Required. Username of the new corporate trainee.
password string Required. Password of the new corporate trainee.
name string Required. Name of the new corporate trainee.
email string Required. Email of the new corporate trainee.

Response

Response Type Description
Username string Username of the new corporate trainee.
Password string Hashed password of the new corporate trainee.
Name string Name of the new corporate trainee.
Email string Email of the new corporate trainee.

Response Example:-

{
  "Username": "john.doe",
  "Password": "dgbndljgnkdgmkdmgrtgvd",
  "Name": "John Doe",
  "Email": "[email protected]"
}

Add new instructor