diff --git a/apify-api/openapi/components/schemas/common/StorageOwnership.yaml b/apify-api/openapi/components/schemas/common/StorageOwnership.yaml new file mode 100644 index 000000000..d6b56f39e --- /dev/null +++ b/apify-api/openapi/components/schemas/common/StorageOwnership.yaml @@ -0,0 +1,5 @@ +type: string +enum: + - ownedByMe + - sharedWithMe +examples: [ownedByMe] diff --git a/apify-api/openapi/paths/datasets/datasets.yaml b/apify-api/openapi/paths/datasets/datasets.yaml index 3b8f67d75..6a047c340 100644 --- a/apify-api/openapi/paths/datasets/datasets.yaml +++ b/apify-api/openapi/paths/datasets/datasets.yaml @@ -54,6 +54,17 @@ get: schema: type: boolean example: true + - name: ownership + in: query + description: | + Filter by ownership. If this parameter is omitted, all accessible datasets are returned. + + - `ownedByMe`: Return only datasets owned by the user. + - `sharedWithMe`: Return only datasets shared with the user by other users. + style: form + explode: true + schema: + $ref: ../../components/schemas/common/StorageOwnership.yaml responses: "200": description: "" diff --git a/apify-api/openapi/paths/key-value-stores/key-value-stores.yaml b/apify-api/openapi/paths/key-value-stores/key-value-stores.yaml index d2242a1e3..38813ba9d 100644 --- a/apify-api/openapi/paths/key-value-stores/key-value-stores.yaml +++ b/apify-api/openapi/paths/key-value-stores/key-value-stores.yaml @@ -59,6 +59,17 @@ get: schema: type: boolean example: true + - name: ownership + in: query + description: | + Filter by ownership. If this parameter is omitted, all accessible key-value stores are returned. + + - `ownedByMe`: Return only key-value stores owned by the user. + - `sharedWithMe`: Return only key-value stores shared with the user by other users. + style: form + explode: true + schema: + $ref: ../../components/schemas/common/StorageOwnership.yaml responses: "200": description: "" diff --git a/apify-api/openapi/paths/request-queues/request-queues.yaml b/apify-api/openapi/paths/request-queues/request-queues.yaml index 0598ecfca..d2b308f21 100644 --- a/apify-api/openapi/paths/request-queues/request-queues.yaml +++ b/apify-api/openapi/paths/request-queues/request-queues.yaml @@ -57,6 +57,17 @@ get: schema: type: boolean example: true + - name: ownership + in: query + description: | + Filter by ownership. If this parameter is omitted, all accessible request queues are returned. + + - `ownedByMe`: Return only request queues owned by the user. + - `sharedWithMe`: Return only request queues shared with the user by other users. + style: form + explode: true + schema: + $ref: ../../components/schemas/common/StorageOwnership.yaml responses: "200": description: ""