v1

latestSwagger 2.0BSD License2026-08-04346147268.3 KB
api

When the employee is updated, it is checked if the request contains the field is_admin to false, it is checked that at least one employee with the field is_admin to true exists and if it does not, the field is_admin is not updated.

put/api/employees/{id}

Request body

idstring uuid
namestring required
emailstring email required
slack_uidstring nullable required
rolestring uuid nullable
companystring uuid
userstring uuid
is_adminboolean
is_managerstring
avatar_imagestring uri nullable
pointsinteger
levelstring
google_idstring

Response

OK

idstring uuid
namestring required
emailstring email required
slack_uidstring nullable required
rolestring uuid nullable
companystring uuid
userstring uuid
is_adminboolean
is_managerstring
avatar_imagestring uri nullable
pointsinteger
levelstring
google_idstring