Skip to content
27 changes: 27 additions & 0 deletions api-reference/beta/api/cloudpc-organizationaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ If successful, this method returns a `200 OK` response code and a [cloudPcOrgani

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "cloudpc_organizationaction"
Expand All @@ -80,6 +81,32 @@ Content-Type: application/json
}
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/cloudpc-organizationaction-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/cloudpc-organizationaction-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/cloudpc-organizationaction-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/cloudpc-organizationaction-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/cloudpc-organizationaction-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/cloudpc-organizationaction-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,42 @@ If successful, this function returns a `200 OK` response code and a [cloudPcOrga

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "cloudpc_retrieveorganizationactiondetail"
} -->

```http
```msgraph-interactive
GET https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/retrieveOrganizationActionDetail(actionType='activate')
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/cloudpc-retrieveorganizationactiondetail-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/cloudpc-retrieveorganizationactiondetail-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/cloudpc-retrieveorganizationactiondetail-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/cloudpc-retrieveorganizationactiondetail-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/cloudpc-retrieveorganizationactiondetail-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/cloudpc-retrieveorganizationactiondetail-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---


### Response

Expand Down
1 change: 0 additions & 1 deletion api-reference/beta/api/filestoragecontainer-getbyuser.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ GET https://graph.microsoft.com/beta/storage/fileStorage/containers/getByUser(us

---


### Response

The following example shows the response.
Expand Down
3 changes: 0 additions & 3 deletions api-reference/beta/api/mailbox-delete-folders.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ Don't supply a request body for this method.

If successful, this method returns a `204 No Content` response code.

> [!NOTE]
> *Archive mailboxes with autoexpanded folders:* When the target folder physically resides in an auxiliary (autoexpanded) archive mailbox, this API might return a redirect response that points to the correct mailbox endpoint. For details, see [Handle archive mailbox redirects](/graph/handle-archive-mailbox-redirects).

## Examples

### Request
Expand Down
3 changes: 0 additions & 3 deletions api-reference/beta/api/mailbox-post-folders.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ You can specify the following properties when you create a **mailboxFolder**.

If successful, this method returns a `201 Created` response code and a [mailboxFolder](../resources/mailboxfolder.md) object in the response body.

> [!NOTE]
> *Archive mailboxes with autoexpanded folders:* When the target folder physically resides in an auxiliary (autoexpanded) archive mailbox, this API might return a redirect response that points to the correct mailbox endpoint. For details, see [Handle archive mailbox redirects](/graph/handle-archive-mailbox-redirects).

## Examples

### Request
Expand Down
14 changes: 14 additions & 0 deletions api-reference/beta/api/mailboxfolder-delete-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The following example shows how to soft-delete a mailbox item in a folder by usi

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "delete_mailboxitem_softdelete",
Expand All @@ -82,6 +83,12 @@ The following example shows a request.
DELETE https://graph.microsoft.com/beta/admin/exchange/mailboxes/MBX:e0648f21@aab09c93/folders/inbox/items/AAMkADk0MzI?disposalType=softDelete
```

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/delete-mailboxitem-softdelete-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

#### Response

The following example shows the response.
Expand All @@ -103,6 +110,7 @@ The following example shows how to hard-delete an eligible mailbox item in Recov

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "delete_mailboxitem_harddelete",
Expand All @@ -113,6 +121,12 @@ The following example shows a request.
DELETE https://graph.microsoft.com/beta/admin/exchange/mailboxes/MBX:e0648f21@aab09c93/folders/recoverableitemsdeletions/items/AAMkADk0MzI?disposalType=hardDelete
```

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/delete-mailboxitem-harddelete-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

#### Response

The following example shows the response.
Expand Down
3 changes: 0 additions & 3 deletions api-reference/beta/api/mailboxfolder-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ PATCH /admin/exchange/mailboxes/{mailboxId}/folders/{mailboxFolderId}/childFolde

If successful, this method returns a `200 OK` response code and an updated [mailboxFolder](../resources/mailboxfolder.md) object in the response body.

> [!NOTE]
> *Archive mailboxes with autoexpanded folders:* When the target folder physically resides in an auxiliary (autoexpanded) archive mailbox, this API might return a redirect response that points to the correct mailbox endpoint. For details, see [Handle archive mailbox redirects](/graph/handle-archive-mailbox-redirects).

## Examples

### Request
Expand Down
2 changes: 2 additions & 0 deletions api-reference/beta/api/planner-list-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ GET /planner/tasks
## Optional query parameters
This method requires planId [filter](/graph/query-parameters) to be specified.

When you call this API with application-only permissions, you must scope the request to a single plan by using a `$filter` query parameter of the form `planId eq '{planId}'`, and you must include a `$select` query parameter that specifies exactly these three non-id properties: `percentComplete`, `assignments`, and `creationSource`. For example, `$select=percentComplete,assignments,creationSource`. Selecting a different number of non-id properties returns a `405 Method Not Allowed` response, and selecting three non-id properties other than these returns a `403 Forbidden` response. The **id** property is always returned and can be included in `$select` without counting toward this limit.

## Request headers
| Name |Description|
|:----------|:----------|
Expand Down
33 changes: 28 additions & 5 deletions api-reference/beta/api/plannerplan-list-historyitems.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ Get the [history](../resources/plannerhistoryitem.md) of changes made to tasks w

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).

<!-- {
"blockType": "permissions",
"name": "plannerplan-list-historyitems-permissions"
}
-->
<!-- { "blockType": "permissions", "name": "plannerplan_list_historyitems" } -->
[!INCLUDE [permissions-table](../includes/permissions/plannerplan-list-historyitems-permissions.md)]

## HTTP request
Expand Down Expand Up @@ -63,6 +59,7 @@ If successful, this method returns a `200 OK` response code and a collection of

The following example shows how to get task [history items](../resources/plannerhistoryitem.md) for a plan with a date filter.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "list_plannerhistoryitem_datefilter"
Expand All @@ -72,6 +69,32 @@ The following example shows how to get task [history items](../resources/planner
GET https://graph.microsoft.com/beta/planner/plans/nETqF5FS2LkCp935s-FIFm2QAFkHM/historyItems?$filter=occurredDateTime gt 2025-11-01T00:00:00Z and occurredDateTime lt 2025-12-01T00:00:00Z
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/list-plannerhistoryitem-datefilter-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/list-plannerhistoryitem-datefilter-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/list-plannerhistoryitem-datefilter-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/list-plannerhistoryitem-datefilter-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/list-plannerhistoryitem-datefilter-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/list-plannerhistoryitem-datefilter-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

### Response

The following example shows the response.
Expand Down
66 changes: 63 additions & 3 deletions api-reference/beta/api/plannertask-delta.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Tracking changes incurs a round of one or more **delta** function calls. If you
| $deltaToken | string | A [state token](/graph/delta-query-overview) returned in the `@odata.deltaLink` URL of the previous **delta** function call for the same resource collection, indicating the completion of that round of change tracking. Save and apply the entire `@odata.deltaLink` URL, including this token in the first request of the next round of change tracking for that collection. |
| $skipToken | string | A [state token](/graph/delta-query-overview) returned in the `@odata.nextLink` URL of the previous **delta** function call, indicating there are further changes to be tracked in the same resource collection. |

When you call this API with application-only permissions, you must scope the request to a single plan by using a `$filter` query parameter of the form `planId eq '{planId}'`, and you must include a `$select` query parameter that specifies exactly these three non-id properties: `percentComplete`, `assignments`, and `creationSource`. For example, `$select=percentComplete,assignments,creationSource`. Selecting a different number of non-id properties returns a `405 Method Not Allowed` response, and selecting three non-id properties other than these returns a `403 Forbidden` response. The **id** property is always returned and can be included in `$select` without counting toward this limit.

## Request headers

| Name | Description |
Expand Down Expand Up @@ -211,7 +213,6 @@ Content-Type: application/json
"publication": null,
"externalSource": null
},
"creationSourceInfo": null,
"id": "aSOQ0mveu06bTSkfnJQay2QAIn_l",
"version": "1-Task @@@@@@@@@@@@@@@H",
"details@odata.context": "https://tasks.officeppe.com/taskApi/V3.0/$metadata#plans('-W4K7hIak0WlAwgJCn1sEWQABgjH')/tasks('aSOQ0mveu06bTSkfnJQay2QAIn_l')/details/$entity",
Expand Down Expand Up @@ -378,7 +379,6 @@ Content-Type: application/json
"publication": null,
"externalSource": null
},
"creationSourceInfo": null,
"id": "aSOQ0mveu06bTSkfnJQay2QAIn_l",
"version": "1-Task @@@@@@@@@@@@@@@H",
"details@odata.context": "https://tasks.officeppe.com/taskApi/V3.0/$metadata#plans('-W4K7hIak0WlAwgJCn1sEWQABgjH')/tasks('aSOQ0mveu06bTSkfnJQay2QAIn_l')/details/$entity",
Expand All @@ -392,7 +392,67 @@ Content-Type: application/json
"id": "aSOQ0mveu06bTSkfnJQay2QAIn_l",
"version": "1-TaskDetails @@@@@@@@@@@@@@@D"
}
},
}
]
}
```

### Example 3: Get delta on tasks in a plannerPlan by using application-only permissions

The following example shows a request that uses application-only permissions. As described in the [Query parameters](#query-parameters) section, the request must be scoped to a single plan by using a `$filter` query parameter and must select exactly the `percentComplete`, `assignments`, and `creationSource` properties by using a `$select` query parameter.

#### Request

The following example shows a request.

<!-- {
"blockType": "request",
"name": "plannertaskthis_delta_e3"
}
-->

```msgraph-interactive
GET https://graph.microsoft.com/beta/planner/tasks/delta?$filter=planId eq '-W4K7hIak0WlAwgJCn1sEWQABgjH'&$select=percentComplete,assignments,creationSource
```

#### Response

The following example shows the response.

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

<!-- {
"blockType": "response",
"truncated": true,
"@odata.type": "Collection(microsoft.graph.plannerTask)"
}
-->

```http
HTTP/1.1 200 OK
Content-Type: application/json

{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#plannerTask",
"@odata.deltaLink": "https://graph.microsoft.com/beta/planner/plans('-W4K7hIak0WlAwgJCn1sEWQABgjH')/tasks?%24select=percentComplete,assignments,creationSource&%24deltatoken=0%257eaa6c4c81-656f-40e8-a2c5-60f4116fa9a4",
"value": [
{
"@odata.etag": "W/\"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBASCc=\"",
"percentComplete": 0,
"assignments": {
"b40c85a0-1a66-4fa3-932f-cc9249ce8c29": {
"@odata.type": "#microsoft.taskServices.assignment",
"assignedBy": "b40c85a0-1a66-4fa3-932f-cc9249ce8c29",
"assignedDateTime": "2022-09-29T18:14:33.1404924Z",
"orderHint": "8585371316723527019PX"
}
},
"creationSource": {
"publication": null,
"externalSource": null
},
"id": "aSOQ0mveu06bTSkfnJQay2QAIn_l"
}
]
}
```
18 changes: 16 additions & 2 deletions api-reference/beta/api/user-list-sponsorof.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,22 @@ If successful, this method returns a `200 OK` response code and a collection of
#### Request

The following example shows a request.
# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "get_sponsorof"
}
-->
```http
```msgraph-interactive
GET https://graph.microsoft.com/beta/users/025e5e3e-e5b7-4eb4-ba1f-4e5b0579f1a2/sponsorOf
```

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/get-sponsorof-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

#### Response

The following example shows the response.
Expand Down Expand Up @@ -108,16 +115,23 @@ Content-Type: application/json
#### Request

The following example shows a request that filters the sponsored objects by user type.
# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "get_sponsorof_filter"
}
-->
```http
```msgraph-interactive
GET https://graph.microsoft.com/beta/users/025e5e3e-e5b7-4eb4-ba1f-4e5b0579f1a2/sponsorOf?$filter=microsoft.graph.user/userType eq 'Guest'
ConsistencyLevel: eventual
```

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/get-sponsorof-filter-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

#### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
description: "Automatically generated file. DO NOT MODIFY"
---

```csharp

// Code snippets are only available for the latest version. Current version is 5.x

// Dependencies
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.OrganizationAction;
using Microsoft.Graph.Beta.Models;

var requestBody = new OrganizationActionPostRequestBody
{
ActionType = CloudPcOrganizationActionType.Activate,
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.VirtualEndpoint.OrganizationAction.PostAsync(requestBody);


```
Loading
Loading