Zum Hauptinhalt springen
POST
/
survey
/
{id}
Submit a customer survey
curl --request POST \
  --url https://demo.enneo.ai/api/mind/survey/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "stars": 5,
  "text": "Great service"
}
'
{
  "success": true,
  "alreadySubmitted": true,
  "template": "<string>"
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Pfadparameter

id
integer
erforderlich

Customer survey id.

Body

application/json
stars
integer
Beispiel:

5

text
string
Beispiel:

"Great service"

Antwort

Submitted (or already submitted — idempotent)

success
boolean
Beispiel:

true

alreadySubmitted
boolean

Present and true when the survey was already submitted before this request

Beispiel:

true

template
string

HTML success message to display to the customer