code: public ApiResponse createEntity(Map<String, Object> properties) {
          assertValidApplicationId();
          if (isEmpty(properties.get("type"))) {
              throw new IllegalArgumentException("Missing entity type");
          }
          ApiResponse response = apiRequest(HttpMethod.POST, null, properties,
                  organizationId, applicationId, properties.get("type").toString());
          return response;
      }
docs: Create a new entity on the server from a set of properties. Properties
  must include a "type" property.
  
  @param properties
  @return an ApiResponse with the new entity in it.