Create teamworkTagMember

Namespace: microsoft.graph

Create a new teamworkTagMember object in a team.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) Not supported. Not supported.
Delegated (personal Microsoft account) Not supported. Not supported.
Application TeamworkTag.ReadWrite.All Not available.

HTTP request

POST /teams/{team-id}/tags/{teamworkTag-id}/members

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the teamworkTagMember object.

The following table shows the properties that are required when you create a teamworkTagMember.

Property Type Description
userId String The unique identifier for the member of the team.

Response

If successful, this method returns a 201 Created response code and a teamworkTagMember object in the response body.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/v1.0/teams/53c53217-fe77-4383-bc5a-ed4937a1aecd/tags/MjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyM3ZDg4M2Q4Yi1hMTc5LTRkZDctOTNiMy1hOGQzZGUxYTIxMmUjI3RhY29VSjN2RGk==/members
Content-Type: application/json

{
  "userId": "97f62344-57dc-409c-88ad-c4af14158ff5"
}

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 201 Created
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.teamworkTagMember",
  "id": "MjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyNlYjY1M2Y5Mi04MzczLTRkZTYtYmZlYy01YjRkMjE2YjZhZGUjI2QzYjJiM2ViLWM0N2YtNDViOS05NWYyLWIyZjJlZjYyMTVjZQ==",
  "displayName": "Megan Bowen",
  "tenantId": "18be64a9-c73a-4862-bccc-76c31ef09b9d",
  "userId": "92f6952f-61ca-4a94-8910-508a240bc167"
}