I tried to find an existing ticket for this but can not make any sense of the search results Phabricator gives me.
There are currently 5 API modules based on the abstract ModifyEntity class:
- wbeditentity
- wbsetlabel
- wbsetdescription
- wbsetaliases
- wbsetsitelink
They all allow to use a new=property parameter to create a new entity of any type supported. But only wbeditentity checks if the user provided a datatype=… parameter with an actually supported data type. The other 4 modules allow to create properties with an empty datatype.