As the whipping boy, he must take the whippings for the royal heir, Prince Brat..
If someone or something is a whipping boy for a particular situation, they get all the blame for it. He has become a convenient whipping boy for the failures of the old regime. = scapegoat. someone or something that is blamed for someone else's mistakes = scapegoat