Meaning: when you will not accept what is happening anymore
Example: The mother said to her son that she had had it up to here with his messy room and that he had to clean it up right away. His teacher had said that she had had it up to here with his bad behaviour in class.
See this Idiom in a story: The Most Unruly Class in the World