Skip to content

Commit

Permalink
New Profile update API to replace learner private update API (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreerag-tarento authored Dec 19, 2024
1 parent 080f912 commit 938679e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,13 @@ public ResponseEntity<?> bulkUploadV2(@RequestParam(value = "file", required = t
SBApiResponse uploadResponse = profileService.bulkUpload(multipartFile, rootOrgId, URLDecoder.decode(channel, "UTF-8"), userId, userAuthToken);
return new ResponseEntity<>(uploadResponse, uploadResponse.getResponseCode());
}

@PatchMapping("/user/private/admin/patch")
public ResponseEntity<?> privateAdminUpdate(
@RequestHeader(value = Constants.AUTH_TOKEN, required = false) String authToken,
@RequestHeader(value = Constants.X_AUTH_USER_ORG_ID, required = false) String rootOrgId,
@RequestBody Map<String, Object> request) throws Exception {
SBApiResponse response = profileService.profileMDOAdminUpdate(request, null, authToken, rootOrgId);
return new ResponseEntity<>(response, response.getResponseCode());
}
}

0 comments on commit 938679e

Please sign in to comment.