addResponseRating


SoftLayer_Ticket_Update_Employee::addResponseRating

Set an update’s response rating.

Description

As part of the customer service process SoftLayer has provided a quick feedback mechanism for its customers to rate the responses that its employees give on tickets. addResponseRating() sets the rating for a single ticket update made by a SoftLayer employee. Ticket ratings have the integer values 1 through 5, with 1 being the worst and 5 being the best. Once the rating is set ‘‘addResponseRating()’’ returns a boolean true.

Parameters

Name Type Description
responseRating int An integer value from 1 to 5, worst to best, that rates a SoftLayer employee’s ticket response.
responseIndex int An integer value, that refers to the unique update Number.

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • Throw the exception “Please set a response rating between 1 and 5.” if ‘‘responseRating’’ is anything other than an integer from 1 to 5.
  • Throw the exception “Ratings cannot be edited on a closed ticket.” if ‘’ticketStatus’’ is 1002 (closed)
  • Throw the exception “Unable to set response rating.” if the API was unable to set the update’s response rating.

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [int, int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Ticket_Update_Employee/{SoftLayer_Ticket_Update_EmployeeID}/addResponseRating'