Feedback

Create a new Feedback

Changed on

OAuth Scope

This endpoint requires the following OAuth scope manage_feedback.

Record UUID

UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the x-record-uuid response header.

post/feedback.json

Request

  • Base URL
    https://api.servicem8.com/api_1.0
  • URL
    https://api.servicem8.com/api_1.0/feedback.json
  • Auth
    • API key in header X-Api-Key
    • or OAuth 2
      Authorization code: https://api.servicem8.com/oauth/authorize
      Token URL: https://api.servicem8.com/oauth/access_token scopes: manage_feedback

Request body

timestampstring

Date and time when the feedback was submitted

related_objectstring

Type of object this feedback relates to (usually 'job' or 'vendor')

related_object_uuidstring uuid

UUID of the specific object this feedback is about, corresponding to the object type specified in related_object

ratingstring

Numeric rating value for the feedback, between 1-5 where higher values represent more positive feedback

commentstring

Text comments provided with the feedback

uuidstring uuid

Unique identifier for this record

Example request

{
  "related_object_uuid": "123e4567-6c6e-4c0e-aa59-23f9417e4cdb",
  "uuid": "123e4567-edbc-4eb4-bc22-23f942892c9b"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes

    • warning

      removed the request property

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status