* @param satisfactionRating
* @return IndividualSatisfactionResponse
* @throws ZendeskApiException
*/
public IndividualSatisfactionResponse createSatisfactionRating(long ticketId, SatisfactionRating satisfactionRating) throws ZendeskApiException {
IndividualSatisfactionResponse individualSatisfactionResponse = new IndividualSatisfactionResponse();
individualSatisfactionResponse.setSatisfactionRating(satisfactionRating);
try {
return genericPost("tickets/" + ticketId + "/satisfaction_rating.json", satisfactionRating, IndividualSatisfactionResponse.class);
} catch (Exception e) {
throw new ZendeskApiException("Creating satisfaction rating " + satisfactionRating.getComment() + " faile", e);
}