Skip to main content

Create Chart Feedback

POST 

/api/v1/feedback/chart

Record that a person switched away from the chart chosen for an answer.

Summary​

POST /api/v1/feedback/chart is an operation in the feedback group of the Nexatron REST API, served from https://api.nexatron.io. Send an API key as a bearer token in the Authorization header. It takes a JSON body whose required fields are message_id, auto_chart_type and user_chart_type. A successful call returns 201; the other documented responses are 400, 401, 403, 404 and 422.

Example request​

curl -X POST "https://api.nexatron.io/api/v1/feedback/chart" \
-H "Authorization: Bearer $NEXATRON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message_id":"<message_id>","auto_chart_type":"<auto_chart_type>","user_chart_type":"<user_chart_type>"}'

Placeholders in angle brackets stand for your own values. NEXATRON_API_KEY holds an API key from Settings → API tokens. See the API overview for authentication, errors and rate limits.

Request​

Responses​

Successful Response