All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| createCsat | POST /api/v1/csat | Create Customer Satisfaction Score |
| editCsat | PATCH /api/v1/csat/{id} | Update Customer Satisfaction Description |
DeleteApplications200Response createCsat(createCsatRequest)
Creates a customer satisfaction score between 0 and 5
import {
CustomerSatisfactionApi,
Configuration,
CreateCsatRequest
} from '@hdruk/gateway-api-sdk';
const configuration = new Configuration();
const apiInstance = new CustomerSatisfactionApi(configuration);
let createCsatRequest: CreateCsatRequest; //Customer Satisfaction score
const { status, data } = await apiInstance.createCsat(
createCsatRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| createCsatRequest | CreateCsatRequest | Customer Satisfaction score |
DeleteApplications200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Resource Created | - |
| 422 | Validation Error | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditCsat200Response editCsat(editCsatRequest)
Update a description for a satisfaction score entry
import {
CustomerSatisfactionApi,
Configuration,
EditCsatRequest
} from '@hdruk/gateway-api-sdk';
const configuration = new Configuration();
const apiInstance = new CustomerSatisfactionApi(configuration);
let id: number; //ID of the CSAT entry (default to undefined)
let editCsatRequest: EditCsatRequest; //Reason to update
const { status, data } = await apiInstance.editCsat(
id,
editCsatRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| editCsatRequest | EditCsatRequest | Reason to update | |
| id | [number] | ID of the CSAT entry | defaults to undefined |
EditCsat200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Update successful | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]