public int addField ( int appId , ApplicationFieldCreate field ) { return getResourceFactory ( ) . getApiResource ( "/app/" + appId + "/field/" ) . entity ( field , MediaType . APPLICATION_JSON_TYPE ) . post ( ApplicationFieldCreateResponse . class ) . getId ( ) ; }
Adds a new field to an app