Create Phase
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
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
Body
Phase Object includes the following properties:
{
"name": "[PhaseName]",
"startDate": "[StartDate]",
"endDate": "[DueDate]",
"status": "",
"primary": false
}
Response
{
"@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.
{
"code": "Must run inside Microsoft Teams.",
"message": "Must run inside Microsoft Teams."
}