Skip to content
Merged
Show file tree
Hide file tree
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
102 changes: 102 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6553,6 +6553,46 @@ components:
description: The type of the object, must be `budget`.
type: string
type: object
BulkDeleteAppsDatastoreItemsRequest:
description: Request to delete items from a datastore.
properties:
data:
$ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequestData'
type: object
BulkDeleteAppsDatastoreItemsRequestData:
description: Data wrapper containing the data needed to delete items from a
datastore.
properties:
attributes:
$ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequestDataAttributes'
id:
description: ID for the datastore of the items to delete.
type: string
type:
$ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequestDataType'
required:
- type
type: object
BulkDeleteAppsDatastoreItemsRequestDataAttributes:
description: Attributes of request data to delete items from a datastore.
properties:
item_keys:
description: List of primary keys identifying items to delete from datastore.
Up to 100 items can be deleted in a single request.
items:
type: string
maxItems: 100
type: array
type: object
BulkDeleteAppsDatastoreItemsRequestDataType:
default: items
description: Items resource type.
enum:
- items
example: items
type: string
x-enum-varnames:
- ITEMS
BulkMuteFindingsRequest:
description: The new bulk mute finding request.
properties:
Expand Down Expand Up @@ -14869,6 +14909,17 @@ components:
data:
$ref: '#/components/schemas/DeleteAppsDatastoreItemResponseData'
type: object
DeleteAppsDatastoreItemResponseArray:
description: The definition of `DeleteAppsDatastoreItemResponseArray` object.
properties:
data:
description: The `DeleteAppsDatastoreItemResponseArray` `data`.
items:
$ref: '#/components/schemas/DeleteAppsDatastoreItemResponseData'
type: array
required:
- data
type: object
DeleteAppsDatastoreItemResponseData:
description: Data containing the identifier of the datastore item that was successfully
deleted.
Expand Down Expand Up @@ -51257,6 +51308,57 @@ paths:
permissions:
- apps_datastore_write
/api/v2/actions-datastores/{datastore_id}/items/bulk:
delete:
description: Deletes multiple items from a datastore by their keys in a single
operation.
operationId: BulkDeleteDatastoreItems
parameters:
- description: The ID of the datastore.
in: path
name: datastore_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BulkDeleteAppsDatastoreItemsRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteAppsDatastoreItemResponseArray'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Not Found
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Internal Server Error
summary: Bulk delete datastore items
tags:
- Actions Datastores
x-permission:
operator: OR
permissions:
- apps_datastore_write
post:
description: Creates or replaces multiple items in a datastore by their keys
in a single operation.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2025-09-29T19:31:22.205Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"log": {
"_recordingName": "Actions Datastores/Bulk delete datastore items returns \"Bad Request\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "6574cf7e1c5524e145d2b92f9fa74d2c",
"_order": 0,
"cache": {},
"request": {
"bodySize": 181,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 566,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"description\":\"\",\"name\":\"Test Datastore\",\"org_access\":\"contributor\",\"primary_column_name\":\"id\",\"primary_key_generation_strategy\":\"none\"},\"type\":\"datastores\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/actions-datastores"
},
"response": {
"bodySize": 74,
"content": {
"mimeType": "application/vnd.api+json",
"size": 74,
"text": "{\"data\":{\"id\":\"2b088869-d596-4103-9cff-038b5f81fc0c\",\"type\":\"datastores\"}}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 658,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2025-09-29T19:31:22.210Z",
"time": 127
},
{
"_id": "250acdecc02d6e90debb4e7c003fc3d3",
"_order": 0,
"cache": {},
"request": {
"bodySize": 55,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 624,
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"item_keys\":[]},\"type\":\"items\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/actions-datastores/2b088869-d596-4103-9cff-038b5f81fc0c/items/bulk"
},
"response": {
"bodySize": 151,
"content": {
"mimeType": "application/vnd.api+json",
"size": 151,
"text": "{\"errors\":[{\"status\":\"400\",\"id\":\"61325aff-aaa7-4571-80e2-e87ed8ffb103\",\"title\":\"missing required field\",\"detail\":\"at least one item key is required\"}]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 941,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 400,
"statusText": "Bad Request"
},
"startedDateTime": "2025-09-29T19:31:22.345Z",
"time": 108
},
{
"_id": "510e983293e08107932ce07babeb6246",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "*/*"
}
],
"headersSize": 539,
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/actions-datastores/2b088869-d596-4103-9cff-038b5f81fc0c"
},
"response": {
"bodySize": 74,
"content": {
"mimeType": "application/vnd.api+json",
"size": 74,
"text": "{\"data\":{\"id\":\"2b088869-d596-4103-9cff-038b5f81fc0c\",\"type\":\"datastores\"}}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 658,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2025-09-29T19:31:22.459Z",
"time": 92
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2025-09-29T19:31:56.639Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"log": {
"_recordingName": "Actions Datastores/Bulk delete datastore items returns \"Not Found\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "070d0045b9573b98f36116e1cdf72cf4",
"_order": 0,
"cache": {},
"request": {
"bodySize": 68,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 622,
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"item_keys\":[\"nonexistent\"]},\"type\":\"items\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/actions-datastores/c1eb5bb8-726a-4e59-9a61-ccbb26f95329/items/bulk"
},
"response": {
"bodySize": 103,
"content": {
"mimeType": "application/vnd.api+json",
"size": 103,
"text": "{\"errors\":[{\"status\":\"404\",\"id\":\"d53325f5-a7f3-4075-ace7-f8e22a25b72f\",\"title\":\"datastore not found\"}]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 941,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 404,
"statusText": "Not Found"
},
"startedDateTime": "2025-09-29T19:31:56.643Z",
"time": 116
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2025-09-29T19:32:10.669Z"
Loading