Online Docs

Create Phase

1
2
3
4
5
POST odata/phase
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
--data-binary [PhaseObject]

URL Endpoint

odata/phase

Method

POST.

Parameters

No support OData Filter syntax.

Request Header

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

Body

Phase Object includes the following properties:

1
2
3
4
5
6
7
{
"name": "[PhaseName]",
"startDate": "[StartDate]",
"endDate": "[DueDate]",
"status": "",
"primary": false
}

Response

1
2
3
4
5
6
7
8
9
10
11
12
{
"@odata.context": "https://schema.appvity.com/odata/$metadata#phase/$entity",
"@odata.editLink": "https://schema.appvity.com/odata/phase('5f69d9244d596392f5748e3e')",
"@odata.id": "https://schema.appvity.com/odata/phase('5f69d9244d596392f5748e3e')",
"name": "Phase 4",
"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",
"_id": "5f69d9244d596392f5748e3e"
}

Error

Code: 400 Bad Request.

1
2
3
4
{
"code": "Must run inside Microsoft Teams.",
"message": "Must run inside Microsoft Teams."
}

Comment

Was this article helpful?
Thanks For Your Feedback