Hello guys, I am trying to conect my Postman app to a FRESHSERVICE instance, but I am receiving errors.
Checking the documentation it seems that whrn you want to update a ticket with an attachment is used the endpoint: freshservice.com/api/v2/tickets/{ticket id} in a PUT method.
I have doing so, and I received this message:
“message”: “PUT method is not allowed. It should be one of these method(s): GET”
But, when I tried to change to POST I received this message:
“message”: “POST method is not allowed. It should be one of these method(s): GET, HEAD, PATCH, PUT, DELETE”
if I remember right, that’s a message that comes out when a ticket is created without all the mandatory fieds.
It’s something that you can do, for example you could make the description mandatory for normal requesters, but you can allow agenst to leave that empty.
When this happens and you want to update the ticked via API, you receive that message.
In fact I have no access to the FRESHSERVICE platform to check these details, but, i’m gonna check with the analyst those configurations.
What I really have to do is to integrate ServiceNow and Freshservice, bur, I’m on baby steps, first try connect and UPDATE successfully in Postman and them go forward.
I’m tryng to CREATE a Ticket with an attachment also, but I facing issues about the payload. Have you know the correct format? I am using the structure bellow:
{
“requester_id”: ###,
“email”: “###”,
“subject”: “THIS IS A INTEGRATION TEST”,
“type”: “###”,
“status”: 2,
“priority”: 3, “attachments[]”: WHAT CAN I WRITE HERE?,
“description”: “THIS IS A INTEGRATION TEST”,
“source”: “###”
}
Unfortunatelly, it keeps returning errors. This time, its says that fields that is FILLED cannot be empty. In yout headers you are using Content-type: json/application or multipart/form data?