Manages a user's profile within a specific organisation (create, update, fetch, and profile-picture uploads). Called by the PIMS (Practice Information Management System, the clinic-facing web app). See the User API for the underlying user account.
Endpoints
POST /:organizationId/profile
- Auth:
requireWebAuth - Params:
organizationId - Controller:
UserProfileController.create - Response:
201: keyserror,message,500: keysmessage
PUT /:organizationId/profile
- Auth:
requireWebAuth - Params:
organizationId - Controller:
UserProfileController.update - Response:
404: keysmessage,200: keyserror,message,500: keysmessage
GET /:organizationId/profile
- Auth:
requireWebAuth - Params:
organizationId - Controller:
UserProfileController.getByUserId - Response:
404: keysmessage,200: keyserror,message,500: keysmessage
GET /:userId/:organizationId/profile
- Auth:
requireWebAuth - Params:
userId,organizationId - Controller:
UserProfileController.getUserProfileById - Response:
404: keysmessage,200: keyserror,message,500: keysmessage
POST /:organizationId/profile-picture
- Auth:
requireWebAuth - Params:
organizationId - Controller:
UserProfileController.getProfilePictureUploadUrl - Response:
400: keysmessage,200: keyss3Key,uploadUrl,500: keysmessage