def METHOD_NAME(self, request):
    if self.client_id_to_replace in request.uri:
        request.uri = request.uri.replace(self.client_id_to_replace, MOCK_GUID)
    if is_text_payload(request) and isinstance(request.body, bytes):
        request.body = self._replace_byte_keys(request.body)
    elif is_text_payload(request) and isinstance(request.body, str):
        request.body = self._replace_string_keys(request.body)
    return request