microsoftgraph / microsoftgraph/msgraph-beta-sdk-dotnet

DeviceHealthScriptsRequestBuilder is missing the PatchAsync method

Open
#749 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave: Question: SDK
Dominant language
C#
Stars
112
Forks
37
Avg merge
14h 57m
Merged PRs (30d)
3

Description

In Intune MEM portal, when you update a Device Health Script, the browser runs a PATCH request against that object. However, I could not find any PATCH method in the RequestBuilder class for that type of object. See https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/blob/ba74729a42ffe43458817c0675a054b4ab8d429a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceHealthScripts/DeviceHealthScriptsRequestBuilder.cs.

Only GET and POST are available, while the REST API documentation mentions a PATCH method is available (https://learn.microsoft.com/en-us/graph/api/intune-devices-devicehealthscript-update?view=graph-rest-beta).

Is the PATCH method simply forgotten in the beta SDK, or do I need to use any special tricks?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/Microsoft.Graph/Generated/DeviceManagement/DeviceHealthScripts/DeviceHealthScriptsRequestBuilder.cs and compare its available GET and POST operations with the linked Microsoft Graph update documentation. Done means the beta SDK exposes the documented PATCH operation for Device Health Scripts and supports the corresponding update request.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.