Scenario that works:
1. Create a host group with a long name. Just fill up the field to the brink and saved.
2. Open host creation form and choose the host group.
3. Save. And it works.
Scenario that does not work:
1. Open host creation form type a very long name in host group.
2. Save. Error from API:
Invalid parameter "/1/name": value is too long. [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerHostCreate->doAction() → CControllerHostUpdateGeneral->processHostGroups() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CHostGroup->create() → CHostGroup::validateCreate() → CApiService::exception() in include\classes\api\services\CHostGroup.php:570]
Should be possible to create such host in both ways.