|
| 1 | +--- |
| 2 | +title: "channelJoinRequest: approve" |
| 3 | +description: "Approve up to 20 pending requests to join a private or shared channel." |
| 4 | +author: "gverma" |
| 5 | +ms.date: 11/15/2026 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "teams" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# channelJoinRequest: approve |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Approve up to 20 pending [requests](../resources/channeljoinrequest.md) to join a private or shared [channel](../resources/channel.md). Each requester is added to the channel as a member, and the join request is removed. Only channel owners can call this API. |
| 18 | + |
| 19 | +This action returns one [channelJoinRequestActionResult](../resources/channeljoinrequestactionresult.md) for each join request ID. The operation succeeds or fails independently for each join request. |
| 20 | + |
| 21 | +## Permissions |
| 22 | + |
| 23 | +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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 24 | + |
| 25 | +<!-- { "blockType": "permissions", "name": "channeljoinrequest_approve" } --> |
| 26 | +[!INCLUDE [permissions-table](../includes/permissions/channeljoinrequest-approve-permissions.md)] |
| 27 | + |
| 28 | +## HTTP request |
| 29 | + |
| 30 | +<!-- { |
| 31 | + "blockType": "ignored" |
| 32 | +} |
| 33 | +--> |
| 34 | +``` http |
| 35 | +POST /teams/{team-id}/channels/{channel-id}/joinRequests/approve |
| 36 | +``` |
| 37 | + |
| 38 | +## Request headers |
| 39 | + |
| 40 | +|Name|Description| |
| 41 | +|:---|:---| |
| 42 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 43 | +|Content-Type|application/json. Required.| |
| 44 | + |
| 45 | +## Request body |
| 46 | + |
| 47 | +In the request body, supply a JSON representation of the parameters. |
| 48 | + |
| 49 | +The following table lists the parameters that are required when you call this action. |
| 50 | + |
| 51 | +|Parameter|Type|Description| |
| 52 | +|:---|:---|:---| |
| 53 | +|joinRequestIds|String collection|The IDs of the join requests to approve. The ID of a join request is the Microsoft Entra object ID of the requester. Duplicate IDs are ignored. The maximum number of IDs is 20. Required.| |
| 54 | + |
| 55 | +## Response |
| 56 | + |
| 57 | +If successful, this action returns a `200 OK` response code and a collection of [channelJoinRequestActionResult](../resources/channeljoinrequestactionresult.md) objects in the response body. The **error** property of each result is `null` when the operation succeeded for that join request. |
| 58 | + |
| 59 | +The following table lists the error codes that can be returned in the **error** property of a result. |
| 60 | + |
| 61 | +|Error code|Description| |
| 62 | +|:---|:---| |
| 63 | +|joinRequestNotFound|No pending join request exists with this ID. The request might already be approved, rejected, or canceled.| |
| 64 | +|requesterNotFound|The requester no longer exists in the directory and can't be added.| |
| 65 | + |
| 66 | +This action returns a `400 Bad Request` response code if **joinRequestIds** is empty, contains more than 20 IDs, or contains an ID that isn't a GUID. If the caller isn't a channel owner, this action returns a `403 Forbidden` response code. |
| 67 | + |
| 68 | +## Examples |
| 69 | + |
| 70 | +### Request |
| 71 | + |
| 72 | +The following example shows a request. |
| 73 | +<!-- { |
| 74 | + "blockType": "request", |
| 75 | + "name": "channeljoinrequest_approve", |
| 76 | + "sampleKeys": ["7e5c4b9a-1a2b-4c3d-9e8f-0a1b2c3d4e5f", "19%3Ae3a7c8d14b2f4f6e9a0d5c71b8e2f945%40thread.tacv2"] |
| 77 | +} |
| 78 | +--> |
| 79 | +``` http |
| 80 | +POST https://graph.microsoft.com/beta/teams/7e5c4b9a-1a2b-4c3d-9e8f-0a1b2c3d4e5f/channels/19%3Ae3a7c8d14b2f4f6e9a0d5c71b8e2f945%40thread.tacv2/joinRequests/approve |
| 81 | +Content-Type: application/json |
| 82 | +
|
| 83 | +{ |
| 84 | + "joinRequestIds": [ |
| 85 | + "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9", |
| 86 | + "8a7b6c5d-4e3f-4a1b-9c0d-1e2f3a4b5c6d", |
| 87 | + "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a" |
| 88 | + ] |
| 89 | +} |
| 90 | +``` |
| 91 | + |
| 92 | +### Response |
| 93 | + |
| 94 | +The following example shows the response. |
| 95 | +>**Note:** The response object shown here might be shortened for readability. |
| 96 | +<!-- { |
| 97 | + "blockType": "response", |
| 98 | + "truncated": true, |
| 99 | + "@odata.type": "Collection(microsoft.graph.channelJoinRequestActionResult)" |
| 100 | +} |
| 101 | +--> |
| 102 | +``` http |
| 103 | +HTTP/1.1 200 OK |
| 104 | +Content-Type: application/json |
| 105 | +
|
| 106 | +{ |
| 107 | + "value": [ |
| 108 | + { |
| 109 | + "@odata.type": "#microsoft.graph.channelJoinRequestActionResult", |
| 110 | + "joinRequestId": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9", |
| 111 | + "error": null |
| 112 | + }, |
| 113 | + { |
| 114 | + "@odata.type": "#microsoft.graph.channelJoinRequestActionResult", |
| 115 | + "joinRequestId": "8a7b6c5d-4e3f-4a1b-9c0d-1e2f3a4b5c6d", |
| 116 | + "error": null |
| 117 | + }, |
| 118 | + { |
| 119 | + "@odata.type": "#microsoft.graph.channelJoinRequestActionResult", |
| 120 | + "joinRequestId": "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a", |
| 121 | + "error": { |
| 122 | + "code": "joinRequestNotFound", |
| 123 | + "message": "The join request was not found." |
| 124 | + } |
| 125 | + } |
| 126 | + ] |
| 127 | +} |
| 128 | +``` |
0 commit comments