plannerBucket: delta
Namespace: microsoft.graph
Important
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.
Get newly created, updated, or deleted buckets in a Planner plan without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data.
This API is supported in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ❌ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Tasks.Read |
Delegated (personal Microsoft account) | Not supported. |
Application | Tasks.Read.All |
HTTP request
GET /planner/plans/{plan-id}/buckets/delta
Query parameters
Tracking changes incurs a round of one or more delta function calls. If you use any query parameter (other than $deltaToken
and $skipToken
), you must specify it in the initial delta request. Microsoft Graph automatically encodes any specified parameters into the token portion of the @odata.nextLink
or @odata.deltaLink
URL provided in the response. You only need to specify any query parameters once upfront. In subsequent requests, copy and apply the @odata.nextLink
or @odata.deltaLink
URL from the previous response. That URL already includes the encoded parameters.
Query parameter | Type | Description |
---|---|---|
$deltaToken | string | A state token 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 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. |
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Content-Type | application/json |
Request body
Do not supply a request body for this method.
Response
If successful, this function returns a 200 OK
response code and a plannerBucket collection in the response body. The response also includes a @odata.nextLink
or a @odata.deltaLink
URL.
A
@odata.nextLink
URL in the response object indicates additional pages of data to be retrieved in the session. The application continues making requests using the@odata.nextLink
URL until a@odata.deltaLink
URL is included in the response.A
@odata.deltaLink
URL in the response object indicates that no more data about the existing state of the resource is returned. Persist and use the@odata.deltaLink
URL to learn about changes to the resource in the future.
For more details, see Use delta query to track changes in Microsoft Graph data. For an example that shows how to track changes to users, see Get incremental changes for users.
Examples
The following example shows a request for delta on plannerBucket objects contained by a plannerPlan.
Request
The following is an example of the request.
GET https://graph.microsoft.com/beta/planner/plans/-W4K7hIak0WlAwgJCn1sEWQABgjH/buckets/delta
Response
The following is an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context":"https://graph.microsoft.com/beta/$metadata#plannerBucket",
"@odata.deltaLink": "https://graph.microsoft.com/beta/planner/plans('-W4K7hIak0WlAwgJCn1sEWQABgjH')/buckets?deltatoken=0%257eaa6c4c81-656f-40e8-a2c5-60f4116fa9a4",
"value": [
{
"@odata.etag": "W/\"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBASCc=\"",
"id": "iz1mmIxX7EK0Yj7DmRsMs2QAEDXH",
"name": "This is a bucket",
"planId": "-W4K7hIak0WlAwgJCn1sEWQABgjH",
"orderHint": "8585371316800245114P\\"
}
]
}
Feedback
Submit and view feedback for