APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var teamworkTag = new TeamworkTag
{
DisplayName = "Finance",
Members = new TeamworkTagMembersCollectionPage()
{
new TeamworkTagMember
{
UserId = "92f6952f-61ca-4a94-8910-508a240bc167"
},
new TeamworkTagMember
{
UserId = "085d800c-b86b-4bfc-a857-9371ad1caf29"
}
}
};
await graphClient.Teams["{team-id}"].Tags
.Request()
.AddAsync(teamworkTag);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
TeamworkTag teamworkTag = new TeamworkTag();
teamworkTag.displayName = "Finance";
LinkedList<TeamworkTagMember> membersList = new LinkedList<TeamworkTagMember>();
TeamworkTagMember members = new TeamworkTagMember();
members.userId = "92f6952f-61ca-4a94-8910-508a240bc167";
membersList.add(members);
TeamworkTagMember members1 = new TeamworkTagMember();
members1.userId = "085d800c-b86b-4bfc-a857-9371ad1caf29";
membersList.add(members1);
TeamworkTagMemberCollectionResponse teamworkTagMemberCollectionResponse = new TeamworkTagMemberCollectionResponse();
teamworkTagMemberCollectionResponse.value = membersList;
TeamworkTagMemberCollectionPage teamworkTagMemberCollectionPage = new TeamworkTagMemberCollectionPage(teamworkTagMemberCollectionResponse, null);
teamworkTag.members = teamworkTagMemberCollectionPage;
graphClient.teams("53c53217-fe77-4383-bc5a-ed4937a1aecd").tags()
.buildRequest()
.post(teamworkTag);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClient(requestAdapter)
requestBody := msgraphsdk.NewTeamworkTag()
displayName := "Finance"
requestBody.SetDisplayName(&displayName)
requestBody.SetMembers( []TeamworkTagMember {
msgraphsdk.NewTeamworkTagMember(),
SetAdditionalData(map[string]interface{}{
"userId": "92f6952f-61ca-4a94-8910-508a240bc167",
}
msgraphsdk.NewTeamworkTagMember(),
SetAdditionalData(map[string]interface{}{
"userId": "085d800c-b86b-4bfc-a857-9371ad1caf29",
}
}
teamId := "team-id"
result, err := graphClient.TeamsById(&teamId).Tags().Post(requestBody)
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.