Invalid parameter for satisaction_rating | Community
Skip to main content

Invalid parameter for satisaction_rating

  • May 19, 2022
  • 3 replies
  • 0 views

Clovis

When I try to programmatically create a ticket using the api/v2/imports/tickets/create_many API endpoint, I get the following error:

Invalid parameter: tickets.0.satisfaction_rating.score must be one of these: good and bad

In this specific case, the satisfaction_rating.score is offered.

 

3 replies

Tipene
  • May 26, 2022
Hi Clovis,
 
If you're including satisfaction ratings when importing tickets, the Ticket Import API does require a satisfaction_rating score of either "good" or "bad". Unfortunately, "offered" and "unoffered" are not accepted parameters for this endpoint. One work around to capture these values on the imported tickets could be to add the values as tags to the tickets, instead.
 
Feel free to reach out with any questions!
 
Tipene

Clovis
  • Author
  • May 26, 2022

The API Documentation says that the field `score` accept a value of "offered", "unoffered", "good" or "bad"

https://developer.zendesk.com/api-reference/ticketing/ticket-management/satisfaction_ratings/

Is there any other workaround?


Tipene
  • May 31, 2022
Hi Clovis,
 
The Ticket Import API behaves a bit differently in that in only accepts the two satisfaction values mentioned. I’ll raise this with our team to have updated in the documentation since I can see that it isn’t clearly stated.