cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ssanders
Engaged Sweeper
Hello Everyone,
I have created a basic web form for my end users to create tickets with. See code below. I am trying to add multiple custom fields to this and find myself coming up short. If you have a working solution for this can you post or send me an email to ssanders@mdspn.com with your working code? Thanks in advance.

<form action="http://lansweeper/api.aspx?Action=AddTicket&Key=xxx" method="post">
<div>
<label for="subject">What trouble are you having?</label>
<input name="subject" id="subject" value="">
</div>
<div>
<label for="description">Please be descriptive?</label>
<input name="description" id="description" value="">
</div>
<div>
<label for="email">E-mail Address</label>
<input name="email" id="email" value="ssanders@mdspn.com">
</div>


<div>
<label for="customfields">IP Address</label>
<input name="customfields" id="customfields" value="">
</div>


<div>
<button>Submit</button>
</div>
</form>
2 REPLIES 2
scoops98
Engaged Sweeper
I am trying to achieve the same thing. It looks like authentication has to happen via a browser before the API will work which doesnt make much sense.
SkylarP
Engaged Sweeper
Hello,

did you ever get this working? I haven't been able to use the API to create tickets at all. even if I type in the URL per the documentation (http://lansweeper:81.api.aspx?Action=AddTicket&Key=123&Subject=Test&Description=TEst&username=test&email=test@tes.com) I get a server 500 error.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now