Webhooks

5.5 Feedback

Any time feedback is left the following template is used in the Created event. Although you can set a subscription to feedback for Create, Update and Delete please note that feedback is currently never updated or Deleted.

Feedback Template

{

    "id": <int>,

       "personId":<int>,

    "feedback": <string>,

    "feedbackType": <int – id of feedbackType>,

    "createdAt": <string ISO 8601 Date>,

       "createdByPersonId": <int>,

    "values": [

      {

        "id": 127,       

        "valueId": <int - id of related company Value>,

        "name": <string – company value name>,

        "pictureURL": <string – url of thumbnail image for company value>",

        "description": <string – company value description>,

        "behaviourId":<int – id of behviour related to company value>,

           "behaviourName":<string – name of related behaviour>,

           "behaviourPictureURL": <string – url of thumbnail image for behaviour>,

        "behaviourDescription": <string – description of the behaviour>

      }

    ]

  }

}

Json Schema (for use with MS Power Automate)

{
  "type": "object",
  "properties": {
    "subjectType": {
      "type": "string"
    },
    "changeType": {
      "type": "string"
    },
    "subjectFrontEndUrl": {
      "type": "string"
    },
    "timeStamp": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "person": {
          "type": "object",
          "properties": {
            "PersonId": {
              "type": "integer"
            },
            "FirstName": {
              "type": "string"
            },
            "FamilyName": {
              "type": "string"
            },
            "Email": {
              "type": "string"
            }
          }
        },
        "feedback": {
          "type": "string"
        },
        "feedbackType": {
          "type": "integer"
        },
        "articleId": {
          "type": "integer"
        },
        "createdAt": {
          "type": "string"
        },
        "createdByPerson": {
          "type": "object",
          "properties": {
            "PersonId": {
              "type": "integer"
            },
            "FirstName": {
              "type": "string"
            },
            "FamilyName": {
              "type": "string"
            },
            "Email": {
              "type": "string"
            }
          }
        },
        "modifiedAt": {
          "type": "string"
        },
        "modifiedByPerson": {
          "type": "object",
          "properties": {
            "PersonId": {
              "type": "integer"
            },
            "FirstName": {
              "type": "string"
            },
            "FamilyName": {
              "type": "string"
            },
            "Email": {
              "type": "string"
            }
          }
        },
        "values": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "createdAt": {
                "type": "string"
              },
              "createdByPerson": {
                "type": "object",
                "properties": {
                  "PersonId": {
                    "type": "integer"
                  },
                  "FirstName": {
                    "type": "string"
                  },
                  "FamilyName": {
                    "type": "string"
                  },
                  "Email": {
                    "type": "string"
                  }
                }
              },
              "modifiedAt": {
                "type": "string"
              },
              "modifiedByPerson": {
                "type": "object",
                "properties": {
                  "PersonId": {
                    "type": "integer"
                  },
                  "FirstName": {
                    "type": "string"
                  },
                  "FamilyName": {
                    "type": "string"
                  },
                  "Email": {
                    "type": "string"
                  }
                }
              },
              "valueId": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "pictureURL": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "behaviourId": {
                "type": "integer"
              },
              "behaviourName": {
                "type": "string"
              },
              "behaviourPictureURL": {
                "type": "string"
              },
              "behaviourDescription": {
                "type": "string"
              },
              "isDeleted": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "createdAt",
              "createdByPerson",
              "modifiedAt",
              "modifiedByPerson",
              "valueId",
              "name",
              "pictureURL",
              "description",
              "behaviourId",
              "behaviourName",
              "behaviourPictureURL",
              "behaviourDescription",
              "isDeleted"
            ]
          }
        },
        "isDeleted": {
          "type": "boolean"
        }
      }
    },
    "differences": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "oldValue": {
            "type": "string"
          },
          "newValue": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "oldValue",
          "newValue"
        ]
      }
    }
  }
}