Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 577 Bytes

File metadata and controls

18 lines (13 loc) · 577 Bytes
description Automatically generated file. DO NOT MODIFY
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.reference_create import ReferenceCreate
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ReferenceCreate(
	odata_id = "https://graph.microsoft.com/v1.0/users/{user-id}",
)

await graph_client.users.by_user_id('user-id').sponsors.ref.post(request_body)