Edit custom property key via API

Hello,
I need to implement the endpoint in Java application, which must create a custom field for Organizations, update it’s value and get them with that field. While key is generated in runtime, there is no possibility to specify the attribute name for custom property in DTO class. Is there any possibility to specify the key of custom property or, for example, get organizations with custom properties by name but not by key?