postHelpTicketsWithHttpInfo method

Future<Response> postHelpTicketsWithHttpInfo(
  1. HelpTicketIntake helpTicketIntake
)

Files a customer support ticket into the public help center.

Files a customer support ticket into the public help center. It creates the ticket (status Open, source portal) with the customer's message on the description, then records that same message as the opening entry of the ticket's conversation thread; the description carries it regardless, so failing to write that entry loses nothing. Answers 201 with an opaque reference. A deployment with no help center answers 404, one whose center has not installed the Help model answers 503, and a body over 64 KiB answers 413 — in that order, which is the order the route has always decided them in.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postHelpTicketsWithHttpInfo(HelpTicketIntake helpTicketIntake,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/help/tickets';

  // ignore: prefer_final_locals
  Object? postBody = helpTicketIntake;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}