Event Payload
The event object payload for a successful webhook delivery of an update object event contains a change log whereas for a non-update event it shares the object data without a change log.
Refer to the respective resource's Public API response to understand the payload structure and changelog structure.
Payload Structure
{
"eventId": "xxyyzz-aabbcc-ddeeff",
"resourceType": "TASK",
"eventType": "TASK_UPDATED.",
"version": "1.0",
"data": {
"task" : {...}
},
"changeLog": {
"changedFields": [..],
"from": {...},
"to": {...}
},
"source": {
"webhook": {
"webhookId": 12345,
"webhookName": "XXYY"
},
"actor": {
"emailId": "[email protected]",
"userId": 123450,
"firstName": "Foo",
"lastName": "Bar"
}
},
"eventOccurredAt": 1702358978350,
"eventTriggeredAt": 1702358979164
}
-
The unique identifier assigned to every event that is initiated by Rocketlane. Please provide this eventId in any correspondence with support so that it may be used for troubleshooting.eventId: -
The type of resource for which the event is triggered. Currently supported resource types:resourceType:- TASK
-
The type of event that can be triggered for the available resource types.eventType:
Currrently supported event types are:- TASK_CREATED
- TASK_UPDATED
- TASK_DELETED
- PROJECT_CREATED
- PROJECT_UPDATED
- PROJECT_ARCHIVED
- PROJECT_DELETED
- PHASE_CREATED
- PHASE_UPDATED
- PHASE_DELETED
-
The version of the webhook payload being sent.version: -
Contains the actual changed resource's information.data: -
If resourceType isdata.task :TASK
thendata
will contain the task details. Refer to the201
response of Task API for a more detailed definition of the structure. -
Contains the information of resource's previous and current state. This will be sent only in events with thechangeLog:_UPDATED
eventType. - The structure of changeLog.from and changeLog.to are dependent on the resourceType.
If resourceType isTASK
, thenchangeLog.from
andchangeLog.to
will follow the structure of
Task API responses. -
Contains the list of fields changed during the eventchangeLog.changedFields: -
Contains the old value of the resource (before the event happened)changeLog.from: -
Contains the new value of the resource (after the event happened)changeLog.to: -
Source information of the event.source: -
Webhoook configuration information for which the event triggeredsource.webhook: -
The unique identifier of a webhook in Rocketlane.source.webhook.webhookId: -
Name of the webhook.source.webhook.webhookName : -
Actor is the user who is responsible for the event.actor:
For example, if a team member John updates the taskName then John is the actor of this TASK_UPDATED event. -
Email Identifier of the actor user.actor.emailId: -
Unique Identifier of the actor user.actor.userId: -
FirstName of the actor user.actor.firstName: -
LastName of the actor user.actor.lastName: -
Timestamp (in epochmillis) of when the event occurred at in Rocketlane.eventOccurredAt: -
Timestamp(in epochmillis) of when the event was sent from Rocketlane to the external system.eventTriggeredAt:
Sample Payloads
TASK_CREATED Event Payload
{
"eventId": "b6c68150-86f3-4a26-9a5f-66db5ca24b87",
"resourceType": "TASK",
"eventType": "TASK_CREATED",
"version": "1.0",
"data": {
"task": {
"taskId": 278,
"taskName": "task2",
"startDate": "2023-12-04",
"dueDate": "2023-12-04",
"archived": false,
"type": "TASK",
"createdAt": 1702266224499,
"updatedAt": 1702266224518,
"createdBy": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Dev",
"lastName": "Curry"
},
"updatedBy": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Dev",
"lastName": "Curry"
},
"project": {
"projectId": 102,
"projectName": "Eu_proj_11_12_v1"
},
"phase": {
"phaseId": 106,
"phaseName": "Phase2"
},
"status": {
"value": 1,
"label": "To do"
},
"fields": [
{
"fieldId": 142,
"fieldLabel": "Region",
"fieldValue": [
1
]
},
{
"fieldId": 143,
"fieldLabel": "Release Owner",
"fieldValue": 1
}
],
"assignees": {},
"followers": {
"members": [
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Dev",
"lastName": "Curry"
}
]
},
"dependencies": []
}
},
"source": {
"webhook": {
"webhookId": 7,
"webhookName": "Test Zel"
},
"actor": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Dev",
"lastName": "Curry"
}
},
"eventOccurredAt": 1702266225732,
"eventTriggeredAt": 1702266229620
}
TASK_UPDATED Event Payload (taskName
updated )
taskName
updated ){
"eventId": "a3c7825b-9c89-42ac-8859-50e243d0c131",
"resourceType": "TASK",
"eventType": "TASK_UPDATED",
"version": "1.0",
"data": {
"task": {
"taskId": 318,
"taskName": "Hire Chief Operating Officer",
"startDate": "2023-05-28",
"dueDate": "2023-07-31",
"archived": false,
"effortInMinutes": 300,
"progress": 39,
"atRisk": false,
"type": "TASK",
"createdAt": 1704199898318,
"updatedAt": 1704199902177,
"createdBy": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bob",
"lastName": "Odenkrik"
},
"updatedBy": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bob",
"lastName": "Odenkrik"
},
"project": {
"projectId": 110,
"projectName": "Hamlin, Hamlin & McGill"
},
"phase": {
"phaseId": 115,
"phaseName": "Hire for different roles"
},
"status": {
"value": 3,
"label": "Completed"
},
"fields": [
{
"fieldId": 142,
"fieldLabel": "Region",
"fieldValue": [
1
]
},
{
"fieldId": 143,
"fieldLabel": "Release Owner",
"fieldValue": 1
}
],
"assignees": {
"members": [
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bob",
"lastName": "Odenkrik"
}
]
},
"followers": {
"members": [
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bob",
"lastName": "Odenkrik"
}
]
},
"dependencies": [],
"priority": {
"value": 1,
"label": "high"
}
}
},
"changeLog": {
"changedFields": [
"taskName"
],
"from": {
"taskName": "Hire operations head"
},
"to": {
"taskName": "Hire Chief Operating Officer"
}
},
"source": {
"webhook": {
"webhookId": 1,
"webhookName": "Receive Rocketlane Notification"
},
"actor": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bob",
"lastName": "Odenkrik"
}
},
"eventOccurredAt": 1704199907693,
"eventTriggeredAt": 1704199908692
}
TASK_UPDATED Event Payload (assignee
updated)
assignee
updated){
"eventId": "255166b2-6d8c-4998-a41d-a28248a24841",
"resourceType": "TASK",
"eventType": "TASK_UPDATED",
"version": "1.0",
"data": {
"task": {
"taskId": 394,
"taskName": "Hire Chief Distribution Officer",
"startDate": "2023-05-28",
"dueDate": "2023-07-31",
"archived": false,
"effortInMinutes": 300,
"progress": 39,
"atRisk": false,
"type": "TASK",
"createdAt": 1704698334640,
"updatedAt": 1704715247842,
"createdBy": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bryan",
"lastName": "Cranston"
},
"updatedBy": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bryan",
"lastName": "Cranston"
},
"project": {
"projectId": 143,
"projectName": "A1A Car Wash"
},
"phase": {
"phaseId": 143,
"phaseName": "Expand team"
},
"status": {
"value": 1,
"label": "To do"
},
"fields": [
{
"fieldId": 142,
"fieldLabel": "Region",
"fieldValue": [
1
]
},
{
"fieldId": 143,
"fieldLabel": "Release Owner",
"fieldValue": 1
}
],
"assignees": {
"members": [
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bryan",
"lastName": "Cranston"
},
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Aaron",
"lastName": "Paul"
}
]
},
"followers": {
"members": [
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bryan",
"lastName": "Cranston"
},
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Aaron",
"lastName": "Paul"
}
]
},
"dependencies": [],
"billable": false,
"timeEntryCategory": {
"categoryId": 1,
"categoryName": "Meeting"
},
"priority": {
"value": 1,
"label": "high"
}
}
},
"changeLog": {
"changedFields": [
"assignees"
],
"from": {
"assignees": {
"members": [
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bryan",
"lastName": "Cranston"
}
]
}
},
"to": {
"assignees": {
"members": [
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bryan",
"lastName": "Cranston"
},
{
"emailId": "[email protected]",
"userId": 1,
"firstName": "Aaron",
"lastName": "Paul"
}
]
}
}
},
"source": {
"webhook": {
"webhookId": 180,
"webhookName": "Receive Rocketlane Notification"
},
"actor": {
"emailId": "[email protected]",
"userId": 1,
"firstName": "Bryan",
"lastName": "Cranston"
}
},
"eventOccurredAt": 1704715249136,
"eventTriggeredAt": 1704715249811
}
Updated 9 months ago