Skip to main content
Skip table of contents

API - Mutation on how to create your own feedback

Mutation to create new Feedback and associate it with both a Customer and a Product Area. As with in-app behaviour, associating Feedback with a Customer and Product Area is mandatory. Also, Feedback initially exists in the Needs Review state (unprocessed).

To update a Feedback item to change its state or to mark it as Important Feedback, an updateFeedback call is required after initial Feedback creation.

Sample Mutation

CODE
// Create feedback mutation 
/* IMPORTANT - the mutation name may be changed from feedbackCreate to createFeedback sometime in the future */
mutation {
 createFeedback (
   customerID: "67P55YV4"
   title: "iOS app"
   mdMessage: "The mobile store doesn't work as well as on the web"
   productAreaID: "SF5tyhaS" 
 ) {
   id
   title
   date
   mdMessage
   author {
     id
     displayName
   }
   customer {
     id
     type
     customerName
   }
   productArea {
     id
     name
  }
 }
}

Sample Response

CODE
// Create feedback mutation successful result
{
 "data": {
   "createFeedback": {
     "id": "xAn35FFd",
     "title": "iOS app",
     "date": "1582222731623",
     "mdMessage": "The mobile store doesn't work as well as on the web",
     "author": {
       "id": "cb9e178d-e17f-47e4-9397-6c8dab4ae1b1",
       "displayName": "Internal tools token"
   },
   "customer": {
      "id": "5e710efc030f9b619419b1d8",
      "type": "organization",
      "customerName": "Toby"
   },
   "productArea": {
      "id": "5e71257b329bd3f04e33b96a",
      "name": "Mobile App"
   }
  }
 }
}

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.