timeline-entries

Create

POST
Creates a new entry on an object's timeline.

Request

This endpoint expects a union.
Timeline Comment

Response

This endpoint returns an object
timeline_entry
union
POST
1curl -X POST https://api.devrev.ai/timeline-entries.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "timeline_comment",
6 "object": "string"
7}'
200Successful
1{
2 "timeline_entry": {
3 "type": "timeline_comment",
4 "id": "string",
5 "object": "string",
6 "object_display_id": "string",
7 "artifacts": [
8 {
9 "id": "string",
10 "display_id": "string"
11 }
12 ],
13 "body": "string",
14 "body_type": "snap_kit",
15 "created_by": {
16 "type": "dev_user",
17 "id": "string",
18 "display_id": "string",
19 "display_name": "string",
20 "display_picture": {
21 "id": "string",
22 "display_id": "string"
23 },
24 "email": "string",
25 "full_name": "string",
26 "state": "active"
27 },
28 "created_date": "2023-01-01T00:00:00Z",
29 "display_id": "string",
30 "labels": [
31 "string"
32 ],
33 "modified_by": {
34 "type": "dev_user",
35 "id": "string",
36 "display_id": "string",
37 "display_name": "string",
38 "display_picture": {
39 "id": "string",
40 "display_id": "string"
41 },
42 "email": "string",
43 "full_name": "string",
44 "state": "active"
45 },
46 "modified_date": "2023-01-01T00:00:00Z",
47 "object_type": "account",
48 "reactions": [
49 {
50 "emoji": "string",
51 "reacted": true,
52 "total_users": 0
53 }
54 ],
55 "snap_kit_body": {
56 "body": {
57 "string": {}
58 },
59 "snap_in_action_name": "string",
60 "snap_in_id": "string"
61 },
62 "snap_widget_body": [
63 {
64 "type": "email_preview",
65 "bcc": [
66 {
67 "address": "string",
68 "name": "string",
69 "user": {
70 "type": "dev_user",
71 "id": "string",
72 "display_id": "string",
73 "display_name": "string",
74 "display_picture": {
75 "id": "string",
76 "display_id": "string"
77 },
78 "email": "string",
79 "full_name": "string",
80 "state": "active"
81 }
82 }
83 ],
84 "cc": [
85 {
86 "address": "string",
87 "name": "string",
88 "user": {
89 "type": "dev_user",
90 "id": "string",
91 "display_id": "string",
92 "display_name": "string",
93 "display_picture": {
94 "id": "string",
95 "display_id": "string"
96 },
97 "email": "string",
98 "full_name": "string",
99 "state": "active"
100 }
101 }
102 ],
103 "from": [
104 {
105 "address": "string",
106 "name": "string",
107 "user": {
108 "type": "dev_user",
109 "id": "string",
110 "display_id": "string",
111 "display_name": "string",
112 "display_picture": {
113 "id": "string",
114 "display_id": "string"
115 },
116 "email": "string",
117 "full_name": "string",
118 "state": "active"
119 }
120 }
121 ],
122 "id": "string",
123 "inlines": [
124 {
125 "artifact": {
126 "id": "string",
127 "display_id": "string"
128 },
129 "content_id": "string"
130 }
131 ],
132 "name": "string",
133 "references": [
134 "string"
135 ],
136 "reply_to": [
137 {
138 "address": "string",
139 "name": "string",
140 "user": {
141 "type": "dev_user",
142 "id": "string",
143 "display_id": "string",
144 "display_name": "string",
145 "display_picture": {
146 "id": "string",
147 "display_id": "string"
148 },
149 "email": "string",
150 "full_name": "string",
151 "state": "active"
152 }
153 }
154 ],
155 "status": "draft",
156 "to": [
157 {
158 "address": "string",
159 "name": "string",
160 "user": {
161 "type": "dev_user",
162 "id": "string",
163 "display_id": "string",
164 "display_name": "string",
165 "display_picture": {
166 "id": "string",
167 "display_id": "string"
168 },
169 "email": "string",
170 "full_name": "string",
171 "state": "active"
172 }
173 }
174 ],
175 "created_by": {
176 "type": "dev_user",
177 "id": "string",
178 "display_id": "string",
179 "display_name": "string",
180 "display_picture": {
181 "id": "string",
182 "display_id": "string"
183 },
184 "email": "string",
185 "full_name": "string",
186 "state": "active"
187 },
188 "created_date": "2023-01-01T00:00:00Z",
189 "display_id": "string",
190 "html_body": "string",
191 "in_reply_to": "string",
192 "message_id": "string",
193 "modified_by": {
194 "type": "dev_user",
195 "id": "string",
196 "display_id": "string",
197 "display_name": "string",
198 "display_picture": {
199 "id": "string",
200 "display_id": "string"
201 },
202 "email": "string",
203 "full_name": "string",
204 "state": "active"
205 },
206 "modified_date": "2023-01-01T00:00:00Z",
207 "namespace": "comment_suggestion_replies",
208 "raw_email_artifact": {
209 "id": "string",
210 "display_id": "string"
211 },
212 "sent_timestamp": "2023-01-01T00:00:00Z",
213 "subject": "string",
214 "text_body": "string"
215 }
216 ],
217 "thread": {
218 "total_replies": 0
219 },
220 "visibility": "external"
221 }
222}