当我尝试使用GraphAPI 创建班次时,出现未知错误:
Argument: sourceEntity, Value: is null.
这是内部错误还是我的?我该怎么办?
Headers:
Authorization - Token
Content-Type - application/json
POST "https://graph.microsoft.com/beta/teams/15e4bf1d-5330-464a-b9e4-897772825d75/schedule/shifts"
我发送的此JSON。-
{
"id": "SHFT_9f95964d-eb55-4ca9-8026-95e30fcfbb50",
"userId": "86f82613-12f2-4717-a162-9ac6727b1518",
"schedulingGroupId": "TAG_0661866e-3772-4512-b292-24c2b5ec4ddd",
"sharedShift": {
"displayName": "Дневная смена",
"notes": "Комментарий",
"startDateTime": "2019-07-11T11:00:00Z",
"endDateTime": "2019-07-14T21:00:00Z",
"theme": "blue",
"activities": [
{
"isPaid": true,
"startDateTime": "2019-07-11T11:00:00Z",
"endDateTime": "2019-07-14T21:00:00Z",
"code": "",
"displayName": "Ланч"
}
]
},
"draftShift": {
"displayName": "Day shift",
"notes": "Please do inventory as part of your shift.",
"startDateTime": "2019-03-11T15:00:00Z",
"endDateTime": "2019-03-12T00:00:00Z",
"theme": "blue",
"activities": [
{
"isPaid": true,
"startDateTime": "2019-03-11T15:00:00Z",
"endDateTime": "2019-03-11T15:30:00Z",
"code": "",
"displayName": "Lunch"
}
]
}
}
我收到此错误-
{
"error": {
"code": "UnknownError",
"message": "Argument: sourceEntity, Value: is null.",
"innerError": {
"request-id": "21945d1d-cb53-4e39-9915-a0840919602c",
"date": "2019-07-09T06:12:10"
}
}
}