Hi,

I'm trying to implement the API to create a new ticket.

We are using version 1.11 of OSTicket and so far so good, but there are some unexplained issues with using the API.

When trying to create a new ticket, I can do so with an email already registered, but not with a new one. I'm getting an error:
Unable to create new ticket: validation errors:
user: Incomplete client information

I see others have had similar problem and it looks like its been down to required fields. However, we are using two different installs of OSTicket for two different domains. One is working and creating a new ticket for new emails and the other is not. I am trying to create a ticket in the General Inquiry help topic which just has the minimum field requirements.

Is there any configuration need to allow the api to create a new user and ticket?
Could other forms that may have other required field be causing a problem?
Or am I just missing something obvious?

I would have to see your code to make sure.

But if you are passing name and email that is all the information that is required to create a user... unless you have added other mandatory fields to the Admin panel -> Manage -> Forms -> Contact Information form.

There is also the possibility that one instance has different Autneitcation settings at: Admin panel -> Settings -> Users. I think that Registration Method set to Private might prevent the API from opening a ticket if the person doesn't exist.

Thanks for your advise.
It was the contact information. On one site an extra field had been added and made it required. Once I set it to Optional, it worked.

Very welcome. 🙂

I'll mark this thread as resolved and close it. Please feel free to start a new thread if you have another question, comment, etc.

ntozier changed the title to [resolved] api new ticket.
Write a Reply...