microsoftgraph / microsoftgraph/msgraph-beta-sdk-typescript

Missing admin/configurationManagement/configurationSnapshots/createSnapshot

Open
#448 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:waiting-for-triage ToTriage type:bug
Dominant language
TypeScript
Stars
6
Forks
6
Avg merge
13h 12m
Merged PRs (30d)
4

Description

Describe the bug

https://learn.microsoft.com/en-us/graph/api/configurationbaseline-createsnapshot?view=graph-rest-beta

Might be an issue with the underlying OpenAPI, just wanted to track it here. post returns a Method Not Allowed because its pointing to the wrong endpoint.

Expected behavior

Be able to call the create method.

How to reproduce

client.admin.configurationManagement.configurationSnapshots.post(snapshotJob)

SDK Version

1.0.0-preview.73

Latest version known to work for scenario above?

never

Known Workarounds

Redirect the incorrect post method to the right URL

client.admin.configurationManagement.configurationSnapshotJobs.withUrl('https://graph.microsoft.com/beta/admin/configurationManagement/configurationSnapshots/createSnapshot')
  const response = await snapshotCreateEndpoint.post(snapshotJob)
Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

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 by comparing the generated route for client.admin.configurationManagement.configurationSnapshots.post(snapshotJob) with the Microsoft Graph createSnapshot documentation and the working withUrl workaround. Trace where this endpoint is defined or generated and verify that the normal post call targets the createSnapshot URL and no longer returns Method Not Allowed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.