Ticket comment event

When a ticket comment is created, Papaya sends a POST request to your server endpoint with the details of the event.

{
  "public_resource": true,
  "type": "ticket_comment",
  "id": "ff270bc9-77bd-4fac-bc63-361f584fe56b",
  "description": "The mechanic has found the issue and repairing the vehicle",
  "user": {
    "id": "269c701f-ab68-4620-93e8-19b9128d2e8c",
    "name": "John Smith",
    "title": "Hub Manager"
  },
  "ticket_id": "9c0aea11-c1d6-48a5-bccd-17d1bb86d32a",
  "created_at": "2022-12-05T15:49:52.661Z",
  "ticket_url": "https://papayadash.com/ticket/7f009a63-2fb3-4c10-abc7-3ca9aa"
}

You should always respond with a 200-level status code to indicate that you received the notification. Papaya ignores the body of your response, so a 204 status with an empty body is ideal:

204 No Content