User Admin
GET
POST
Body
isDeletedbooleanRequiredExample:
Indicates if deleted users should be included
falseglobalSearchstring | nullableRequiredExample:
Global search term
search termsortFieldstring | nullableRequiredExample:
Field to sort by
createdAtsortOrderstring · enum | nullableRequiredExample:
Order to sort by
ASCPossible values: Responses
200
Users retrieved successfully
application/json
400
Invalid search parameters
application/json
post
/usersPATCH
Body
idsnumber[]RequiredExample:
[1,2,3]Responses
200
Users archived successfully
application/json
ResponseanyExample:
{"message":"Users archived successfully","description":"The users have been archived successfully."}400
One or more users not found
application/json
403
Access denied
application/json
500
Internal server error
application/json
patch
/users/archiveBody
idsnumber[]RequiredExample:
[1,2,3]Responses
200
Users restored successfully
application/json
ResponseanyExample:
{"message":"Users restored successfully","description":"The users have been restored successfully."}400
One or more users not found
application/json
403
Access denied
application/json
500
Internal server error
application/json
patch
/users/restoreResponses
200
Tour completion status toggled successfully
application/json
ResponseanyExample:
{"message":"Tour completion status toggled successfully","description":"The tour completion status has been toggled successfully."}404
User not found
application/json
500
Internal server error
application/json
patch
/users/tourPUT
Body
idnumberOptionalExample:
1roleIdsnumber[] | nullableOptionalExample:
[1,2,3]Responses
200
User updated successfully
application/json
ResponseanyExample:
{"message":"User updated successfully","description":"The user has been updated successfully."}400
Invalid user data
application/json
404
User not found
application/json
put
/users/update-userBody
firstNamestring | nullableRequiredExample:
JohnlastNamestring | nullableRequiredExample:
Doeemailstring | nullableRequiredExample:
john.doe@example.comphotostring | nullableRequiredExample:
photo.jpgphoneNumberstring | nullableRequiredExample:
123-456-7890impersonationAllowedboolean | nullableRequiredExample:
trueResponses
200
Profile updated successfully
application/json
ResponseanyExample:
{"message":"Profile updated successfully","description":"The profile has been updated successfully."}400
User not found
application/json
put
/users/update-profileDELETE
Body
idsnumber[]RequiredExample:
[1,2,3]Responses
200
Users deleted successfully
application/json
ResponseanyExample:
{"message":"Users deleted successfully","description":"The users have been deleted successfully."}400
One or more users not found
application/json
403
Access denied
application/json
500
Internal server error
application/json
delete
/usersPath parameters
fileNamestringRequired
Responses
200
Photo deleted successfully
application/json
ResponseanyExample:
{"message":"Photo deleted successfully","description":"The photo has been deleted successfully."}404
Photo not found
application/json
500
Internal server error
application/json
delete
/users/delete-photo/{fileName}Last updated