Check that the event is registered and you are authorized to post it
Priority must be an integer in the range 0-number