public int addField(int appId, ApplicationFieldCreate field) {
		return getResourceFactory().getApiResource("/app/" + appId + "/field/")
				.entity(field, MediaType.APPLICATION_JSON_TYPE)
				.post(ApplicationFieldCreateResponse.class).getId();
	}
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

@param appId
The id of the the field should be added to
@param field
The definition of the new field
@return The id of the newly created field