public int create ( Reference object , HookCreate create ) { return getResourceFactory ( ) . getApiResource ( "/hook/" + object . getType ( ) + "/" + object . getId ( ) + "/" ) . entity ( create , MediaType . APPLICATION_JSON ) . post ( HookCreateResponse . class ) . getId ( ) ; }
Create a new hook on the given object .