|
1 | | ---- |
2 | | -title: "Get bucket" |
3 | | -description: "Read the properties and relationships of bucket object." |
4 | | -author: "EshaSugla" |
5 | | -ms.date: 09/10/2026 |
6 | | -ms.localizationpriority: medium |
7 | | -ms.subservice: "planner" |
8 | | -doc_type: apiPageType |
9 | | ---- |
10 | | - |
11 | | -# Get bucket |
12 | | - |
13 | | -Namespace: microsoft.graph |
14 | | - |
15 | | -[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
16 | | - |
17 | | -Read the properties and relationships of [bucket](../resources/bucket.md) object. |
18 | | - |
19 | | -## Permissions |
20 | | - |
21 | | -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). |
22 | | - |
23 | | -<!-- { |
24 | | - "blockType": "permissions", |
25 | | - "name": "bucket-get-permissions" |
26 | | -} |
27 | | ---> |
28 | | -[!INCLUDE [permissions-table](../includes/permissions/bucket-get-permissions.md)] |
29 | | - |
30 | | -## HTTP request |
31 | | - |
32 | | -<!-- { |
33 | | - "blockType": "ignored" |
34 | | -} |
35 | | ---> |
36 | | -``` http |
37 | | -GET /me/planner/plans_v2/{planId}/buckets/{bucketId} |
38 | | -GET /users/{usersId}/planner/plans_v2/{planId}/buckets/{bucketId} |
39 | | -``` |
40 | | - |
41 | | -## Optional query parameters |
42 | | - |
43 | | -This method supports some of the OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters). |
44 | | - |
45 | | -## Request headers |
46 | | - |
47 | | -|Name|Description| |
48 | | -|:---|:---| |
49 | | -|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
50 | | - |
51 | | -## Request body |
52 | | - |
53 | | -Don't supply a request body for this method. |
54 | | - |
55 | | -## Response |
56 | | - |
57 | | -If successful, this method returns a `200 OK` response code and a [bucket](../resources/bucket.md) object in the response body. |
58 | | - |
59 | | -## Examples |
60 | | - |
61 | | -### Request |
62 | | - |
63 | | -The following example shows a request. |
64 | | -<!-- { |
65 | | - "blockType": "request", |
66 | | - "name": "get_bucket" |
67 | | -} |
68 | | ---> |
69 | | -``` http |
70 | | -GET https://graph.microsoft.com/beta/me/planner/plans_v2/{planId}/buckets/{bucketId} |
71 | | -``` |
72 | | - |
73 | | - |
74 | | -### Response |
75 | | - |
76 | | -The following example shows the response. |
77 | | ->**Note:** The response object shown here might be shortened for readability. |
78 | | -<!-- { |
79 | | - "blockType": "response", |
80 | | - "truncated": true, |
81 | | - "@odata.type": "microsoft.graph.bucket" |
82 | | -} |
83 | | ---> |
84 | | -``` http |
85 | | -HTTP/1.1 200 OK |
86 | | -Content-Type: application/json |
87 | | -
|
88 | | -{ |
89 | | - "value": { |
90 | | - "@odata.type": "#microsoft.graph.bucket", |
91 | | - "id": "206ac2f7-b3e0-e350-a95d-d7fe9091c22f", |
92 | | - "displayName": "String", |
93 | | - "planId": "String", |
94 | | - "creationInfo": { |
95 | | - "@odata.type": "microsoft.graph.creationInfo" |
96 | | - }, |
97 | | - "lastModifiedBy": { |
98 | | - "@odata.type": "microsoft.graph.identitySet" |
99 | | - }, |
100 | | - "lastModifiedDateTime": "String (timestamp)", |
101 | | - "capabilities": { |
102 | | - "@odata.type": "microsoft.graph.bucketCapability" |
103 | | - }, |
104 | | - "extensions": { |
105 | | - "@odata.type": "microsoft.graph.extensionFieldCollection" |
106 | | - } |
107 | | - } |
108 | | -} |
109 | | -``` |
110 | | - |
| 1 | +--- |
| 2 | +title: "Get bucket" |
| 3 | +description: "Read the properties and relationships of bucket object." |
| 4 | +author: "EshaSugla" |
| 5 | +ms.date: 09/10/2026 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "planner" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# Get bucket |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Read the properties and relationships of [bucket](../resources/bucket.md) object. |
| 18 | + |
| 19 | +## Permissions |
| 20 | + |
| 21 | +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). |
| 22 | + |
| 23 | +<!-- { |
| 24 | + "blockType": "permissions", |
| 25 | + "name": "bucket_get_permissions" |
| 26 | +} |
| 27 | +--> |
| 28 | +[!INCLUDE [permissions-table](../includes/permissions/bucket-get-permissions.md)] |
| 29 | + |
| 30 | +## HTTP request |
| 31 | + |
| 32 | +<!-- { |
| 33 | + "blockType": "ignored" |
| 34 | +} |
| 35 | +--> |
| 36 | +``` http |
| 37 | +GET /planner/plans_v2/{planId}/buckets/{bucketId} |
| 38 | +``` |
| 39 | + |
| 40 | +## Request headers |
| 41 | + |
| 42 | +|Name|Description| |
| 43 | +|:---|:---| |
| 44 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 45 | + |
| 46 | +## Request body |
| 47 | + |
| 48 | +Don't supply a request body for this method. |
| 49 | + |
| 50 | +## Response |
| 51 | + |
| 52 | +If successful, this method returns a `200 OK` response code and a [bucket](../resources/bucket.md) object in the response body. |
| 53 | + |
| 54 | +## Examples |
| 55 | + |
| 56 | +### Request |
| 57 | + |
| 58 | +The following example shows a request. |
| 59 | +<!-- { |
| 60 | + "blockType": "request", |
| 61 | + "name": "get_bucket" |
| 62 | +} |
| 63 | +--> |
| 64 | +``` http |
| 65 | +GET https://graph.microsoft.com/beta/planner/plans_v2/{planId}/buckets/{bucketId} |
| 66 | +``` |
| 67 | + |
| 68 | + |
| 69 | +### Response |
| 70 | + |
| 71 | +The following example shows the response. |
| 72 | +>**Note:** The response object shown here might be shortened for readability. |
| 73 | +<!-- { |
| 74 | + "blockType": "response", |
| 75 | + "truncated": true, |
| 76 | + "@odata.type": "microsoft.graph.bucket" |
| 77 | +} |
| 78 | +--> |
| 79 | +``` http |
| 80 | +HTTP/1.1 200 OK |
| 81 | +Content-Type: application/json |
| 82 | +
|
| 83 | +{ |
| 84 | + "@odata.type": "#microsoft.graph.bucket", |
| 85 | + "id": "206ac2f7-b3e0-e350-a95d-d7fe9091c22f", |
| 86 | + "displayName": "Product launch" |
| 87 | +} |
| 88 | +``` |
| 89 | + |
0 commit comments