Skip to content

Commit 46b7ac7

Browse files
authored
Merge pull request #39 from opencloud-eu/feat/driveitem-allowed-actions
feat: add @libre.graph.permissions.actions.allowedValues to driveItem
2 parents 883252e + 4ad18da commit 46b7ac7

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

api/openapi-spec/v1.0.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,6 +2223,7 @@ paths:
22232223
schema:
22242224
type: string
22252225
x-ms-docs-key-type: drive
2226+
- $ref: '#/components/parameters/driveItemSelect'
22262227
responses:
22272228
'200':
22282229
description: Retrieved resource
@@ -2607,6 +2608,8 @@ paths:
26072608
- me.drive.root
26082609
summary: Get root from personal space
26092610
operationId: HomeGetRoot
2611+
parameters:
2612+
- $ref: '#/components/parameters/driveItemSelect'
26102613
responses:
26112614
'200':
26122615
description: Retrieved resource
@@ -2623,6 +2626,8 @@ paths:
26232626
- me.drive.root.children
26242627
summary: Get children from drive
26252628
operationId: HomeGetChildren
2629+
parameters:
2630+
- $ref: '#/components/parameters/driveItemSelect'
26262631
responses:
26272632
'200':
26282633
description: Retrieved resource list
@@ -5187,6 +5192,18 @@ components:
51875192
items:
51885193
type: string
51895194
readOnly: true
5195+
'@libre.graph.permissions.actions.allowedValues':
5196+
type: array
5197+
description: |
5198+
A list of actions the caller is allowed to perform on this item.
5199+
5200+
Only returned when explicitly requested via `$select` on endpoints
5201+
that support it. Mirrors the annotation of the same name on the
5202+
`/permissions` endpoint, allowing clients to learn a caller's
5203+
effective actions on an item without a separate round-trip.
5204+
items:
5205+
type: string
5206+
readOnly: true
51905207
sharingLinkType:
51915208
type: string
51925209
enum: [ internal, view, upload, edit, createOnly, blocksDownload ]
@@ -6288,11 +6305,15 @@ components:
62886305
items:
62896306
enum:
62906307
- '@microsoft.graph.downloadUrl'
6308+
- '@libre.graph.permissions.actions.allowedValues'
62916309
type: string
62926310
examples:
62936311
request download url:
62946312
value:
62956313
- '@microsoft.graph.downloadUrl'
6314+
request allowed actions:
6315+
value:
6316+
- '@libre.graph.permissions.actions.allowedValues'
62966317
drivesFilter:
62976318
name: $filter
62986319
in: query

0 commit comments

Comments
 (0)