Skip to content

User API

Agent-Husky edited this page Nov 12, 2022 · 2 revisions

All data must be send as FormData.

getall

Data to send

action = "getall" 

Description

Returns list of all users and their information.

getbyid

Data to send

action = "getbyid"
id = id of the requested user

Description

Returns list of all user information.

add

Data to send

action = "add"
username = your username
password_hash = sha256 hash of your current password
addusername = username of the user to add
titel = title of user to add e.g. "Dr."
vorname = first name of user
nachname = last name of user
generatedpassword = sha256 hash of the password for the new user
email = email address of user to add
position = role of user to add
faecher = string of faecher the user teaches e.g. "MA;DE;FR"

Description

Adds user with given parameters.

adminupdate

Data to send

action = "adminupdate"
username = your username
password_hash = sha256 hash of your current password
id = id of the selected user
addusername = username of the user to add
titel = title of user to add e.g. "Dr."
vorname = first name of user
nachname = last name of user
generatedpassword = sha256 hash of the password for the new user
email = email address of user to add
position = role of user to add
faecher = string of faecher the user teaches e.g. "MA;DE;FR"

Description

Administration update of user information.

selfupdate

Data to send

action = "selfupdate"
username = your username
password_hash = sha256 hash of your current password
displayname = displayed first name of user e.g. "F."
description = descriptiontext of the user

Description

Updates self-editable information.

delete

Data to send

action = "delete"
username = your username
password_hash = sha256 hash of your current password
id = id of the selected user

Description

Disables user account.

changepassword

Data to send

action = "changepassword"
username = your username
password_hash = sha256 hash of your current password
newpassword_hash = sha256 hash of your new password

Description

Update your own password.