class UserController {

    @ApiOperation(value = "Update user custom goals")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = HttpStatuses.OK, response = UserRoleDto.class),
            @ApiResponse(code = 303, message = HttpStatuses.SEE_OTHER),
            @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
            @ApiResponse(code = 403, message = HttpStatuses.FORBIDDEN)
    })
    @PatchMapping("/{userId}/customGoals")
    public ResponseEntity<List<CustomGoalResponseDto>> updateBulk(@PathVariable @CurrentUserId Long userId,
                                                                  @Valid @RequestBody BulkCustomGoalDto dto) {
        return ResponseEntity.status(HttpStatus.OK)
                .body(customGoalService.updateBulk(dto));
    }

}