omnidesk
  • Ticket
    • Message
    • Using forms
    • Contact forms
  • Customers
    • General
    • API sync on contact
    • CSV import
    • API sync before contact
    • Customer lookup
  • Telephone
    • Callflow
    • Numbers
  • E-mail
  • Users
  • Live chat
    • Livechat chatbot and app integration (backend)
  • Facebook
  • Twitter
  • Survey
    • Push data
  • Statistics
    • Statistics API
  • Raw data - BI
  • Security policy
  • Hosting
  • API docs
    • General
    • Authentication
    • REST
  • API specification
    • Documentation for the Omnidesk API endpoints
    • Chat
    • Customer
    • Email
    • Form
    • Formfield
    • Message
    • Notification
    • Raw
    • Ticket
    • User
    • View
    • Statisticsv2
Powered by GitBook
On this page
  1. Survey

Push data

PreviousSurveyNextStatistics

Last updated 5 years ago

It is possible to use data from an external survey system.

Push survey data for a ticket

POST https://account.omnidesk.com/api/v2/survey/ticketSurvey

Either ticketID or a randomTicketID needs to be specified.

Request Body

Name
Type
Description

surveyServer

string

myserver.prod.brand.com

fields[0]['value']

string

Value of a survey field

fields[0]['id']

integer

ID of a survey field

grade

integer

ticketRandomID

string

ticketID

integer

{
    "type": "result",
    "status": "success",
    "message": "Survey data is saved for the specified ticket."
}

Sample CURL:

curl --request POST --url --header 'apikey: ' {{apiKey}} --header 'content-type: multipart/form-data; boundary=---011000010111000001101001' --form surveyServer=test.test.com --form 'fields[0][value]=great support from employee' --form 'fields[0][id]=1' --form 'fields[1][value]=feedback to company' --form 'fields[1][id]=2' --form grade=9 --form ticketID=937137

https://{{accountName}}.omnidesk.com/api/v2/survey/ticketSurvey