curl --request POST \
--url https://bloodhound.specterops.io/openapi.json/api/v2/saved-queries/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"<string>"'"[this request has no response data]"Import one or more cypher queries.
The request body should be a json file containing a single query or a Zip consisting of multiple JSON files each containing a single query.
The underlying JSON file(s) is expected to have the following structure:
{
"name": "Return_Nodes",
"query": "MATCH (n) RETURN n",
"description": "Returns all nodes in a given graph"
}
curl --request POST \
--url https://bloodhound.specterops.io/openapi.json/api/v2/saved-queries/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"<string>"'"[this request has no response data]"Authorization: Bearer $JWT_TOKEN
Request body should be a JSON or Zip file.
The body is of type file.
No Content This response will contain no response body.
The response is of type string.