change Profile Pic

@PostMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + CHANGE_PROFILE_PIC_ENDPOINT", headers = [] )
open fun changeProfilePic(@PathVariable(value = "id") id: String, @RequestHeader(value = "token") token: String, @RequestParam(value = "profile_pic") profilePic: MultipartFile): String

Method to change the profile pic of the user

Return

the result of the request as String

Parameters

id

: the identifier of the user

token

: the token of the user

profilePic

: the profile pic chosen by the user to set as the new profile pic