To configure a webhook, an admin with permission to the CSRconnect Admin Panel needs to navigate to the Integrations section of the panel. From there, webhooks can be created or managed.
By clicking "New Webhook" you can configure a friendly name for the hook, the message you wish to subscribe to, and the post method that CSRconnect should use each time the webhook is triggered. This message can be an HTTP url or AWS SQS configuration.
{
"eventId":912,
"eventType":1,
"reccurrenceId":5,
"occurrenceId":2,
"shiftId":3114,
"hours":2.0,
"charityId":null,
"affiliateOrganizationId":null,
"organizationName":"hhhh",
"affiliateEmployeeId":2483669,
"employeeFirstName":"test",
"employeeLastName":"support",
"participationDate":"2019-07-18T00:00:00Z",
"createdDate":"2019-07-12T15:13:52.6269356+00:00",
"affiliateId":0,
"existingParticipation":false,
"active":true,
"guestId":null
}
{
"eventId": 0,
"name": "Test5",
"startDateUtc": "2019-07-22T06:00:00",
"endDateUtc": "2019-08-10T06:00:00",
"charityId": 4575269,
"affiliateOrganizationId": null,
"organizationName": "A LITTLE BIT OF LOVE",
"eventType": 1,
"affiliateId": 0
}
Currently, webhooks are available for our Volunteer feature with messages for "Event was Created" and "Participant was Added".