SetSupervisorReview

[POST] .../v1/ticket/setsupervisorreview

Sets a supervisor review for a CRM ticket. Use this method when a supervisor evaluates the handling quality of a CRM ticket. The method requires the ticket review schema, validates the ticket, 1 to 5 review_score range, saves score/comment/current user/date and returns row_affected with the ticket id. The request body is required; id must be positive and review_score must be from 1 to 5. A later call can replace the supervisor review and updates supervisor_review_user_id and supervisor_review_date. The caller must have CRM ticket supervisor-review permission; missing body, invalid id or score, unsupported database schema, missing ticket, denied ticket ACL, storage errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Ticket ID.
review_comment String Optional Supervisor review comment.
review_score Int32 Required Supervisor review score in the 1.5 range.

Request Example

{
  "id": 610,
  "review_score": 5,
  "review_comment": "Operator followed the script and resolved the issue"
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1,
    "ids": [
      610
    ]
  }
}