postFeedback method

Future<CSATFeedbackFullDTO> postFeedback({
  1. required String requestIdOrKey,
  2. required CSATFeedbackFullDTO body,
})

This method adds a feedback on an request using it's requestKey or requestId

Permissions required: User must be the reporter or an Atlassian Connect app.

Implementation

Future<CSATFeedbackFullDTO> postFeedback(
    {required String requestIdOrKey,
    required CSATFeedbackFullDTO body}) async {
  return CSATFeedbackFullDTO.fromJson(await _client.send(
    'post',
    'rest/servicedeskapi/request/{requestIdOrKey}/feedback',
    pathParameters: {
      'requestIdOrKey': requestIdOrKey,
    },
    body: body.toJson(),
  ));
}