-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Labels
bugSomething isn't workingSomething isn't workingticketed(automation only) Ticket has been created internally for tracking(automation only) Ticket has been created internally for tracking
Description
Description:
The new API endpoint /api/v2/saved-queries/export
in BHCE v8.2.0 does not export multiple saved queries at once as advertised in the endpoint's description.
Are you intending to fix this bug?
no
Component(s) Affected:
- API
Steps to Reproduce:
- Go to the API Explorer
- Try out the
/api/v2/saved-queries/export
"Export one or more saved queries" endpoint - Receive a Bad Request error indicating that only one query can be exported
Expected Behavior:
The description of the endpoint says
The response ZIP file will contain JSON files using their query name as the file name.
This indicates the export of multiple queries at once is supported.
Actual Behavior:
Instead, the following HTTP error is returned:
{
"http_status": 400,
"timestamp": "2025-09-29T10:49:10.747042724Z",
"request_id": "69693116-b8e4-4260-890d-780bd7be0fea",
"errors": [
{
"context": "",
"message": "id is malformed."
}
]
}
This sounds like a specific query ID is missing, and calling /api/v2/saved-queries/<queryID>/export
as the UI is doing works indeed.
However, this is contrary to the endpoint's description and is not documented this way.
Screenshots/Code Snippets/Sample Files:
Environment Information:
BloodHound: v8.2.0
Contributor Checklist:
- I have searched the issue tracker to ensure this bug hasn't been reported before or is not already being addressed.
- I have provided clear steps to reproduce the issue.
- I have included relevant environment information details.
- I have attached necessary supporting documents.
- I have checked that any JSON files I am attempting to upload to BloodHound are valid.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingticketed(automation only) Ticket has been created internally for tracking(automation only) Ticket has been created internally for tracking