Create a timeline event
Record a timeline event on a thread, optionally backdated, such as a routine run that tagged it and created an issue. Only records history: it changes no tag, issue or assignee itself, and events cannot be deleted through the API. Requires the threads:write scope.
curl -X POST "https://productlane.com/api/v2/threads/{thread_id}/activities" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event_type": "routine_run"
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Parameters
thread_idstringpathrequired
Body
event_typeenum<string>requiredTimeline event to record. One of: routine_run, routine_note, tag_linked, tag_unlinked, priority_changed, assignee_changed, self_assigned, issue_created, issue_linked, issue_unlinked, project_linked, project_unlinked, status_changed, thread_marked_done, thread_reopened, thread_snoozed, thread_unsnoozed, contact_changed, company_changed.
One of:routine_runroutine_notetag_linkedtag_unlinkedpriority_changedassignee_changedself_assignedissue_createdissue_linkedissue_unlinkedproject_linkedproject_unlinkedstatus_changedthread_marked_donethread_reopenedthread_snoozedthread_unsnoozedcontact_changedcompany_changedpayloadanyThe event's fields, in the dashboard's camelCase format, e.g.
{ tagId, tagName, tagColor, tagIcon }for tag_linked or{ issueId, issueIdentifier, issueTitle }for issue_created. AddroutineRunIdto group a change under a routine_run with thatrunId.actor_idstring | nullWorkspace user id shown as the actor. Omit or
nullfor a system event, which is how routine runs appear.created_atstring<date-time>Backdates the event so it sits at that point in the timeline. Defaults to now; must not be in the future.
Response
Successful response
idstringrequiredthread_idstringrequiredevent_typestringrequiredTimeline event type, e.g. tag_linked or routine_run.
payloadanyThe event's fields in the dashboard's camelCase format.
actor_idstring | nullrequiredWorkspace user who acted;
nullfor a system event such as a routine run.created_atstringrequired
{
"id": "string",
"thread_id": "string",
"event_type": "string",
"payload": null,
"actor_id": "string",
"created_at": "string"
}