Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone Team method doesn't have a return result #2378

Closed
avanadrichem opened this issue Mar 11, 2024 · 3 comments
Closed

Clone Team method doesn't have a return result #2378

avanadrichem opened this issue Mar 11, 2024 · 3 comments

Comments

@avanadrichem
Copy link

Describe the bug
Clone Team method doesn't have a return result.

To Reproduce
Try the following code in C#.

var body = new Microsoft.Graph.Teams.Item.Clone.ClonePostRequestBody
{
// params
};
var response = await GraphClient.Teams[team.Id].Clone.PostAsync(body);

The Clone method doesn't have a return result as described in the documentation.

Expected behavior
The documentation states: If successful, this method returns a 202 Accepted response code with a Location: header pointing to the operation resource. When the operation is complete, the operation resource tells you the ID of the created team.

Client version
Latest Graph 5 SDK for .NET

@andrueastman
Copy link
Member

Thanks for raising this @avanadrichem

Any chance the response here is helpful in your scenario? #2344 (comment)

The SDK does not support monitoring long running operations as described in the docs below, (this is tracked via microsoftgraph/msgraph-sdk-design#83)
https://learn.microsoft.com/en-us/graph/long-running-actions-overview?tabs=http

@avanadrichem
Copy link
Author

It does help, but still I think the SDK should provide some support for creating and cloning Teams.

@andrueastman
Copy link
Member

Thanks for the feedback.
We'll close this and track this via microsoftgraph/msgraph-sdk-design#83 and have this added once the implementation specification is ready.

@andrueastman andrueastman self-assigned this Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants