when i Create subscription send me error, please give me solution

mukul gupta 1 Reputation point
2020-12-29T19:07:07.497+00:00

post url : https://graph.microsoft.com/v1.0/subscriptions

body
{
"changeType": "created",
"notificationUrl": "https://strategyconnectfunctionapp.azurewebsites.net/api/HttpTrigger1",
"resource": "teams/0429a7d6-f1ad-4278-b66d-f54eab8cf2a1/channels/19:74513d33d4d243b7832a980d48c6a3c2%40thread.tacv2/messages",
"expirationDateTime": "2020-12-29T13:25:45.9356913Z",
"clientState": "secretClientValue",
"latestSupportedTlsVersion": "v1_2"
}

send this response
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: BadRequest; Reason: 'app + user' subscriptions are not supported in v1]",
"innerError": {
"date": "2020-12-29T14:10:25",
"request-id": "90bd3a6a-4374-4b60-bf69-af93b54aa755",
"client-request-id": "e871bd8c-d6cb-3b2f-0153-5c2a693ccd9a"
}
}
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,767 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2020-12-30T23:13:40.993+00:00

    Hello, ensure you're getting and using an access token for your application and not for a user since the later is not supported.

    Please let me know if you need more help. If the answer was helpful to you, please accept it and, optionally, provide feedback so that other members in the community can benefit from it.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.