question

BrunoIT-3437 avatar image
0 Votes"
BrunoIT-3437 asked saldana-msft edited

Create assignment with `notificationChannelUrl` return error 400(20243 Notification channel url is invalid)

We can using the Education Graph API to create an edit assignments without "notificationChannelUrl" in request body.

Then we using endpoint: https://docs.microsoft.com/en-us/graph/api/resources/educationassignment?view=graph-rest-1.0#properties
to set the request body with notificationChannelUrl, and now return bad request with following error message.

error:{"code":"20243","message":"Invalid request body. Notification channel url is invalid."


API usage process:
1, use https://graph.microsoft.com/v1.0/teams/{eam-id}/channels, then get the channel list with ["webUrl"]=>
string(201) "https://teams.microsoft.com/l/channel/19%3azP ... ...,

   2, create assignments with "notificationChannelUrl": webUrl, 

The question is: What url string I can set for notificationChannelUrl?

Thank you very much!

microsoft-graph-applicationsmicrosoft-graph-education
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CarlZhao-MSFT avatar image
1 Vote"
CarlZhao-MSFT answered CarlZhao-MSFT edited

Hi @BrunoIT-3437

The notificationChannelUrl is not a hyperlink to the channel but the graph api used to get the channel.

 "notificationChannelUrl": "https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}"

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BrunoIT-3437 avatar image
0 Votes"
BrunoIT-3437 answered

Hi @CarlZhao-MSFT ,
Thanks for your quickly reply. And the answer is very helpful.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CristobalBuenrostro-8227 avatar image
0 Votes"
CristobalBuenrostro-8227 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.