Zum Hauptinhalt springen
POST
/
survey
/
{reference}
-
{referenceId}
Submit a survey response
curl --request POST \
  --url https://demo.enneo.ai/api/mind/survey/{reference}-{referenceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "stars": 5,
  "text": "I really loved your app"
}
'
{
  "success": true
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Pfadparameter

reference
string
erforderlich

The reference code of a survey that was provided by an API endpoint, e.g. a reply

referenceId
integer<int32>
erforderlich

The ID of the referenced entity

Body

application/json

The survey response

stars
integer

Stars given by the user

Beispiel:

5

text
string
Beispiel:

"I really loved your app"

Antwort

Successful operation

Data format of Enneo success messages

success
boolean

Operation was successful

Beispiel:

true