patch request to microsoft graph api for planner task does not return the updated task in the response

503 Views Asked by At

According to the documentation on updating order hints in planner.

The client can obtain the values immediate if return=representation preference is specified in the PATCH requests.

I've tried putting this in the header, and as a query parameter, but I still only get back a 204 response. Where in the PATCH request, does the return=representation go ?

2

There are 2 best solutions below

0
OrdinaryOrange On BEST ANSWER

The graph sdk team enlightened me. The header Prefer:return=representation is what needs to be set.

1
Seiya Su On

Just as you can see in the docs:

Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

The API is still in development. So the documentation may update too.

You can submit an issue to the Github issue list first. Meanwhile vote up the existing request or submit a new one in the UserVoice