create ticket endpoint