@@ -6616,6 +6616,46 @@ components:
6616
6616
description: The type of the object, must be `budget`.
6617
6617
type: string
6618
6618
type: object
6619
+ BulkDeleteAppsDatastoreItemsRequest:
6620
+ description: Request to delete items from a datastore.
6621
+ properties:
6622
+ data:
6623
+ $ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequestData'
6624
+ type: object
6625
+ BulkDeleteAppsDatastoreItemsRequestData:
6626
+ description: Data wrapper containing the data needed to delete items from a
6627
+ datastore.
6628
+ properties:
6629
+ attributes:
6630
+ $ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequestDataAttributes'
6631
+ id:
6632
+ description: ID for the datastore of the items to delete.
6633
+ type: string
6634
+ type:
6635
+ $ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequestDataType'
6636
+ required:
6637
+ - type
6638
+ type: object
6639
+ BulkDeleteAppsDatastoreItemsRequestDataAttributes:
6640
+ description: Attributes of request data to delete items from a datastore.
6641
+ properties:
6642
+ item_keys:
6643
+ description: List of primary keys identifying items to delete from datastore.
6644
+ Up to 100 items can be deleted in a single request.
6645
+ items:
6646
+ type: string
6647
+ maxItems: 100
6648
+ type: array
6649
+ type: object
6650
+ BulkDeleteAppsDatastoreItemsRequestDataType:
6651
+ default: items
6652
+ description: Items resource type.
6653
+ enum:
6654
+ - items
6655
+ example: items
6656
+ type: string
6657
+ x-enum-varnames:
6658
+ - ITEMS
6619
6659
BulkMuteFindingsRequest:
6620
6660
description: The new bulk mute finding request.
6621
6661
properties:
@@ -14733,6 +14773,17 @@ components:
14733
14773
data:
14734
14774
$ref: '#/components/schemas/DeleteAppsDatastoreItemResponseData'
14735
14775
type: object
14776
+ DeleteAppsDatastoreItemResponseArray:
14777
+ description: The definition of `DeleteAppsDatastoreItemResponseArray` object.
14778
+ properties:
14779
+ data:
14780
+ description: The `DeleteAppsDatastoreItemResponseArray` `data`.
14781
+ items:
14782
+ $ref: '#/components/schemas/DeleteAppsDatastoreItemResponseData'
14783
+ type: array
14784
+ required:
14785
+ - data
14786
+ type: object
14736
14787
DeleteAppsDatastoreItemResponseData:
14737
14788
description: Data containing the identifier of the datastore item that was successfully
14738
14789
deleted.
@@ -51998,6 +52049,60 @@ paths:
51998
52049
x-undo:
51999
52050
type: idempotent
52000
52051
/api/v2/actions-datastores/{datastore_id}/items/bulk:
52052
+ delete:
52053
+ description: Deletes multiple items from a datastore by their keys in a single
52054
+ operation.
52055
+ operationId: BulkDeleteDatastoreItems
52056
+ parameters:
52057
+ - description: The ID of the datastore.
52058
+ in: path
52059
+ name: datastore_id
52060
+ required: true
52061
+ schema:
52062
+ type: string
52063
+ requestBody:
52064
+ content:
52065
+ application/json:
52066
+ schema:
52067
+ $ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequest'
52068
+ required: true
52069
+ responses:
52070
+ '200':
52071
+ content:
52072
+ application/json:
52073
+ schema:
52074
+ $ref: '#/components/schemas/DeleteAppsDatastoreItemResponseArray'
52075
+ description: OK
52076
+ '400':
52077
+ content:
52078
+ application/json:
52079
+ schema:
52080
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
52081
+ description: Bad Request
52082
+ '404':
52083
+ content:
52084
+ application/json:
52085
+ schema:
52086
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
52087
+ description: Not Found
52088
+ '429':
52089
+ $ref: '#/components/responses/TooManyRequestsResponse'
52090
+ '500':
52091
+ content:
52092
+ application/json:
52093
+ schema:
52094
+ $ref: '#/components/schemas/JSONAPIErrorResponse'
52095
+ description: Internal Server Error
52096
+ summary: Bulk delete datastore items
52097
+ tags:
52098
+ - Actions Datastores
52099
+ x-menu-order: 11
52100
+ x-permission:
52101
+ operator: OR
52102
+ permissions:
52103
+ - apps_datastore_write
52104
+ x-undo:
52105
+ type: idempotent
52001
52106
post:
52002
52107
description: Creates or replaces multiple items in a datastore by their keys
52003
52108
in a single operation.
0 commit comments