Online Docs

Get Discussion

Retrieves a list of discussions in the channel and link to a bug in the ebug.

1
2
3
4
GET /api/bugs/{bug-id}/messages|
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

URL Endpoint

api/bugs/{bug-id}/messages

Method

GET.

Parameters

This method does not supply the request body.

Request

Header

1
2
3
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

Body

This method does not supply the request body.

Response

If successful, this method returns a 200 OK response code and list of messages that discussed in the response body.

Example

Request

1
2
3
4
curl --location --request GET 'https://teams.appvity.com/api/bugs?$top=16&$orderby=internalId%20desc' \
--header 'x-appvity-groupId: f87faa71-57a8-4c14-91f0-517f54645106' \
--header 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'Cookie: graphNodeCookie=s%3A7fny8dhq1t5QO4Z9UNMYylwYpS0WfpRC.8vknvG34SrmKol3FvYAzcKdzPa28mDQIxt48qc0LrBE'

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"@odata.context": "https://schema.appvity.com/odata/$metadata#bugReplies",
"@odata.count": 2,
"value": [
{
"id": "1600223744928",
"replyToId": "1600143765962",
"etag": "1600223744928",
"messageType": "message",
"createdDateTime": "2020-09-16T02:35:44.928Z",
"lastModifiedDateTime": "2020-09-16T02:35:44.928Z",
"deletedDateTime": null,
"subject": null,
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/19%3A15c258785b4040699180e7a8ad6c6014%40thread.tacv2/1600223744928?groupId=f87faa71-57a8-4c14-91f0-517f54645106&tenantId=df7abg9c-c05a-4fc9-b958-64faered911d&createdTime=1600223744928&parentMessageId=1600143765962",
"policyViolation": null,
"from": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "5083cb81-35f4-4abd-ba2d-e7b9965c1f89",
"displayName": "Oliver Neal",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "html",
"content": "This is discussion 2"
},
"channelIdentity": {
"teamId": "f87faa71-57a8-4c14-91f0-517f54645106",
"channelId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2"
},
"attachments": [],
"mentions": [],
"reactions": []
},
{
"id": "1600223736560",
"replyToId": "1600143765962",
"etag": "1600223736560",
"messageType": "message",
"createdDateTime": "2020-09-16T02:35:36.56Z",
"lastModifiedDateTime": "2020-09-16T02:35:36.56Z",
"deletedDateTime": null,
"subject": null,
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/19%3A15c258785b4040699180e7a8ad6c6014%40thread.tacv2/1600223736560?groupId=f87faa71-57a8-4c14-91f0-517f54645106&tenantId=df7abg9c-c05a-4fc9-b958-64faered911d&createdTime=1600223736560&parentMessageId=1600143765962",
"policyViolation": null,
"from": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "5083cb81-35f4-4abd-ba2d-e7b9965c1f89",
"displayName": "Oliver Neal",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "html",
"content": "This is discussion 1"
},
"channelIdentity": {
"teamId": "f87faa71-57a8-4c14-91f0-517f54645106",
"channelId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2"
},
"attachments": [],
"mentions": [],
"reactions": []
}
]
}

Comment

Was this article helpful?
Thanks For Your Feedback