Skip to main content
Question

Missing Params while try to Update Ticket Description using Web Request


eadel01
Apprentice
Forum|alt.badge.img

Happy new year Everyone

 

I’m trying to put ticket description using Workflow Automator - Web Request as below:

{
  "ticket": {
    "type": "Incident",
    "description": "",
    "description_text": ""
    },
  }

 

And here’s response:

{
  "code": "missing_params",
  "message": "Your update call does not have any parameter. Atleast one parameter is required."
}

With the following Header:

{
  "Date": "Sun, 01 Jan 2023 02:00:34 GMT",
  "Content-Type": "application/json; charset=utf-8",
  "Transfer-Encoding": "chunked",
  "Connection": "keep-alive",
  "Status": "400 Bad Request",
  "Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
  "X-Freshservice-Api-Version": "latest=v2; requested=v2",
  "Pragma": "no-cache",
  "X-Xss-Protection": "1; mode=block",
  "X-Request-Id": "1bbd4299-7649-4a8f-967f-f4cc2ffe11af",
  "X-Frame-Options": "SAMEORIGIN",
  "X-Content-Type-Options": "nosniff",
  "Expires": "Wed, 13 Oct 2010 00:00:00 UTC",
  "X-Envoy-Upstream-Service-Time": "37",
  "X-Fw-Ratelimiting-Managed": "true",
  "X-Ratelimit-Total": "140",
  "X-Ratelimit-Remaining": "139",
  "X-Ratelimit-Used-Currentrequest": "1",
  "X-Trace-Id": "00-06e8715a420aa52a4ace18ee707f8cfb-4e95fcc7cd9052ba-00",
  "Nel": "{ \"report_to\": \"nel-endpoint-freshservice\", \"max_age\": 60, \"include_subdomains\": true}",
  "Report-To": "{ \"group\": \"nel-endpoint-freshservice\", \"max_age\": 60, \"include_subdomains\": true, \"endpoints\": [{\"url\": \"https://edge-admin.us-east-1.freshedge.net/nelreports/freshservice\"}]}",
  "Server": "fwe"
}

 

Did this topic help you find an answer to your question?

2 replies

afautley
Skilled Expert
Forum|alt.badge.img+11
  • Skilled Expert
  • 194 replies
  • January 2, 2023

Hi,

 

Have you tried putting in information in the description outputs? 

e.g.

{  

"ticket": {     "type": "Incident",

                   "description": "<div>Details about the issue...</div>",

                   "description_text": "Details about the issue..."

             },

}

 

 

Also do you have any other mandatory fields that are empty, can’t remember the error code i had but this was a problem for me before…

 


sanofar.allahpichai
Community Debut
Forum|alt.badge.img+6

Hi @eadel01,

Here is the correct end-point URL and payload to update a ticket in Freshservice. We don’t have to pass the ‘type’ attribute in the payload but any other mandatory ticket fields do need to be included.

PUT https://domain.freshservice.com/api/v2/tickets/[id]

JSON payload:

{
  "description": "Test"
}

 

Sample web request PUT call

 

FYR: https://api.freshservice.com/#update_ticket_priority

I hope this is helpful 😀


Reply