Online Docs

Get List of Phases

Retrieve the list of phases belong to eSource.

1
2
3
4
GET odata/phase
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID] |

URL Endpoint

odata/phase

Method

GET.

Parameters

See OData Filter syntax.

Request Header

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

Example

Request

1
2
3
4
curl --location --request GET 'https://teams.appvity.com/odata/phase?t=1600828522738&$count=true' \
--header 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'Cookie: graphNodeCookie=s%3AZGGfQCb5SDtfLhLJQayOIVfPHBicZOOQ.viAqFkF9B%2FOUv0h7bPpnsMQnAn1YmMt4H7cZ1zflPkw'

Body

This method does not supply the request body.

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
{
"@odata.context": "https://schema.appvity.com/odata/$metadata#phase",
"value": [
{
"_id": "5f62da414d596392f54d220e",
"name": "Phase 1",
"startDate": "2020-07-31T17:00:00Z",
"endDate": "2020-08-31T16:59:59Z",
"primary": false,
"createdAt": "2020-09-17T03:38:41.297Z",
"updatedAt": "2020-09-17T03:38:41.297Z"
},
{
"_id": "5f69d9244d596392f5748e3e",
"name": "Phase 2",
"startDate": "2020-09-22T17:00:00Z",
"endDate": "2020-09-30T16:59:59Z",
"primary": false,
"createdAt": "2020-09-22T10:59:48.054Z",
"updatedAt": "2020-09-22T10:59:48.054Z"
}
],
"@odata.count": 2
}

Error

Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.
Content: {error: “error message”}

Comment

Was this article helpful?
Thanks For Your Feedback