Activity events
Some tooltip text!
• 1 minute to read
• 1 minute to read
These events are fired when appointment/document rows are changed:
activity.created
activity.changed
activity.deleted
Activity.created
POST /webhook HTTP/1.1
Content-Type: application/json; charset=utf-8
User-Agent: NetServer-Webhook/8.8.6684.1719
X-Superoffice-Event: activity.created
X-Superoffice-Eventid: 6aa6de53-f5c3-4dc6-af3e-746df45573b8
X-Superoffice-Signature: X1FmmRIXuzH8o0MDanva1lnuNZXoix6M0US1S64s+e8=
{
"EventId": "6aa6de53-f5c3-4dc6-af3e-746df45573b8",
"Timestamp": "2018-04-24T08:13:17.8445662Z",
"Changes": [
"appointment_id",
"suggestedDocumentId",
"status",
"task_idx",
"endDate",
"document_id",
"activeLinks",
"assignedBy",
"alarm",
"done",
"updatedCount",
"contact_id",
"emailId",
"lagTime",
"priority_idx",
"associate_id",
"userdef_id",
"group_idx",
"recurrenceRuleId",
"private",
"do_by",
"location",
"invitedPersonId",
"registered_associate_id",
"preferredTZLocation",
"updated",
"project_id",
"rejectReason",
"sale_id",
"person_id",
"activeDate",
"rejectCounter",
"color_index",
"suggestedAppointmentId",
"leadtime",
"registered",
"hasAlarm",
"alldayEvent",
"text_id",
"updated_associate_id",
"type",
"userdef2_id",
"freeBusy",
"source",
"isMilestone",
"mother_id"
],
"Event": "activity.created",
"PrimaryKey": 4039840,
"Entity": "activity",
"ContextIdentifier": "Default",
"ChangedByAssociateId": 37201,
"WebhookName": "Name you provided"
}
Activity.changed
{
"EventId": "e87ac619-c864-4881-89eb-07ca5521ee2c",
"Timestamp": "2018-04-24T08:18:42.089895Z",
"Changes": [
"appointment_id",
"status",
"done",
"updated",
"updated_associate_id",
"updatedCount"
],
"Event": "activity.changed",
"PrimaryKey": 4039840,
"Entity": "activity",
"ContextIdentifier": "Default",
"ChangedByAssociateId": 316,
"WebhookName": "Name you provided"
}
Activity.deleted
{
"EventId": "e87ac619-c864-4881-89eb-07ca5521ee2c",
"Timestamp": "2018-04-24T08:18:42.089895Z",
"Changes": [],
"Values": {
"appointment_id": 4039840,
"contact_id": 1234,
"person_id": 0,
"project_id": 178105,
"sale_id": 0
},
"Event": "activity.deleted",
"PrimaryKey": 4039840,
"Entity": "activity",
"ContextIdentifier": "Default",
"ChangedByAssociateId": 316,
"WebhookName": "Name you provided"
}