Goal names truncated when set via API


i want to set goals via the HTTP API. The goal names get truncated at 40 chars. Longer goal names can be set via the GUI though. I’m using matomo 3.14.1 self hosted. The total url length is well below 500 chars. Is there some sort of (hidden) limit that can (must) be changed?