Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 127 additions & 0 deletions sample-queries/sample-queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,133 @@
"docLink": "https://learn.microsoft.com/en-us/graph/api/resources/site?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "523eeb65-f5dc-48b1-afd0-54a53418a9ca",
"category": "SharePoint Embedded",
"method": "POST",
"humanName": "create a container",
"requestUrl": "/v1.0/storage/fileStorage/containers",
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-post?view=graph-rest-1.0",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"postBody": "{\r\n \"displayName\": \"My Application Storage Container\",\r\n \"description\": \"Description of My Application Storage Container\",\r\n \"containerTypeId\": \"{containerTypeId}\"\r\n}",
"skipTest": false
},
{
"id": "851e434b-60ad-4f32-b435-9540d353d811",
"category": "SharePoint Embedded",
"method": "GET",
"humanName": "list containers",
"requestUrl": "/v1.0/storage/fileStorage/containers?$filter=containerTypeId eq {containerTypeId}",
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The requestUrl contains unencoded spaces in the OData $filter expression, which makes the URL invalid in many clients and can break request execution. Encode the spaces (e.g., %20) in the query string so the requestUrl is a valid URL.

Suggested change
"requestUrl": "/v1.0/storage/fileStorage/containers?$filter=containerTypeId eq {containerTypeId}",
"requestUrl": "/v1.0/storage/fileStorage/containers?$filter=containerTypeId%20eq%20{containerTypeId}",

Copilot uses AI. Check for mistakes.
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestorage-list-containers?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "3507a75c-e4d8-47d6-8e09-6f2d5382bf65",
"category": "SharePoint Embedded",
"method": "GET",
"humanName": "get a container",
"requestUrl": "/v1.0/storage/fileStorage/containers/{containerId}",
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-get?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "b850b24e-ff82-4946-861c-7c5ae1565e45",
"category": "SharePoint Embedded",
"method": "POST",
"humanName": "add a writer to a container",
"requestUrl": "/v1.0/storage/fileStorage/containers/{containerId}/permissions",
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-post-permissions?view=graph-rest-1.0",
"headers": [
{
"name": "Content-type",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": "Content-type",
"name": "Content-Type",

"value": "application/json"
}
],
Comment on lines +1330 to +1335
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Header name casing is inconsistent (Content-type here vs Content-Type elsewhere in the same PR). While HTTP header names are case-insensitive, tooling/UI code sometimes does exact string comparisons. Use a consistent header name (prefer Content-Type) across all samples.

Copilot uses AI. Check for mistakes.
"postBody": "{\r\n \"roles\": [\"writer\"],\r\n \"grantedToV2\": {\r\n \"user\": {\r\n \"userPrincipalName\": \"{userEmail}\"\r\n }\r\n }\r\n}",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"postBody": "{\r\n \"roles\": [\"writer\"],\r\n \"grantedToV2\": {\r\n \"user\": {\r\n \"userPrincipalName\": \"{userEmail}\"\r\n }\r\n }\r\n}",
"postBody": "{\r\n \"roles\": [\"writer\"],\r\n \"grantedToV2\": {\r\n \"user\": {\r\n \"id\": \"{userObjectId}\"\r\n }\r\n }\r\n}",

"skipTest": false
},
{
"id": "4495afff-e67e-4969-8ea0-5abb37dec0e8",
"category": "SharePoint Embedded",
"method": "GET",
"humanName": "list container permissions",
"requestUrl": "/v1.0/storage/fileStorage/containers/{containerId}/permissions",
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-list-permissions?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "6a17fab7-4623-4173-9460-2417b60a4c04",
"category": "SharePoint Embedded",
"method": "POST",
"humanName": "add a choice column to a container",
"requestUrl": "/v1.0/storage/fileStorage/containers/{containerId}/columns",
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-post-columns?view=graph-rest-1.0",
"headers": [
{
"name": "Content-type",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": "Content-type",
"name": "Content-Type",

"value": "application/json"
}
],
Comment on lines +1355 to +1360
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same inconsistency as above: align this header name casing with the other samples (Content-Type) to avoid brittle behavior in clients that treat header names as case-sensitive.

Copilot uses AI. Check for mistakes.
"postBody": "{\r\n \"name\": \"color\",\r\n \"displayName\": \"Color\",\r\n \"description\": \"Color of the item\",\r\n \"choice\": {\r\n \"choices\": [\"red\", \"blue\", \"green\"]\r\n }\r\n}",
"skipTest": false
},
{
"id": "e053cee5-3b04-470a-82bd-5744feeb5b73",
"category": "SharePoint Embedded",
"method": "GET",
"humanName": "list container columns",
"requestUrl": "/v1.0/storage/fileStorage/containers/{containerId}/columns",
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-list-columns?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "66794bb1-0c60-4a43-aee9-95715c1765fc",
"category": "SharePoint Embedded",
"method": "POST",
"humanName": "create a folder in a container",
"requestUrl": "/v1.0/drives/{containerId}/root/children",
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder {containerId} is used for /storage/fileStorage/containers/{containerId} and also for /drives/{...} endpoints. In Graph, a fileStorage container identifier is not necessarily the same as a drive identifier, so this placeholder is ambiguous and can mislead users. Consider using {driveId} for /drives/... samples (and keep {containerId} for /storage/fileStorage/containers/...) to make the required identifiers unambiguous.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@dluces dluces Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, in Graph the identifier for fileStorageContainer is indeed always a drive identifier.

"docLink": "https://learn.microsoft.com/en-us/graph/api/driveitem-post-children?view=graph-rest-1.0",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"postBody": "{\r\n \"name\": \"New Folder\",\r\n \"folder\": {}\r\n}",
"skipTest": false
},
{
"id": "eb82d84e-b403-4adf-a790-8512675e69b5",
"category": "SharePoint Embedded",
"method": "GET",
"humanName": "list items in a container",
"requestUrl": "/v1.0/drives/{containerId}/items/root/children",
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This drive children listing path is incorrect: items/root/children is not a valid pattern for Microsoft Graph Drive APIs. The supported pattern for root children is /drives/{driveId}/root/children (or /drives/{driveId}/items/{itemId}/children for a specific folder). Update the URL accordingly.

Suggested change
"requestUrl": "/v1.0/drives/{containerId}/items/root/children",
"requestUrl": "/v1.0/drives/{containerId}/root/children",

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a valid comment, just don't have permissions to apply suggestions

"docLink": "https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "d860e6da-a685-4f4f-a8ef-66a657268887",
"category": "SharePoint Embedded",
"method": "GET",
"humanName": "get an item in a container",
"requestUrl": "/v1.0/drives/{containerId}/items/{itemId}",
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder {containerId} is used for /storage/fileStorage/containers/{containerId} and also for /drives/{...} endpoints. In Graph, a fileStorage container identifier is not necessarily the same as a drive identifier, so this placeholder is ambiguous and can mislead users. Consider using {driveId} for /drives/... samples (and keep {containerId} for /storage/fileStorage/containers/...) to make the required identifiers unambiguous.

Copilot uses AI. Check for mistakes.
"docLink": "https://learn.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "35bfeb59-4911-4042-bb40-4615a484973e",
"category": "SharePoint Embedded",
"method": "DELETE",
"humanName": "delete a container",
"requestUrl": "/v1.0/storage/fileStorage/containers/{containerId}",
"docLink": "https://learn.microsoft.com/en-us/graph/api/filestorage-delete-containers?view=graph-rest-1.0",
"skipTest": false
},
{
"id": "b7d7134b-6509-48c5-8ce6-79d431ac4e98",
"category": "SharePoint Lists",
Expand Down
Loading