GET
/
api
/
v2
/
posture-history
/
{data_type}
{
  "start": "2023-11-07T05:31:56Z",
  "end": "2023-11-07T05:31:56Z",
  "environments": [
    "<string>"
  ],
  "data_type": "findings",
  "data": [
    {
      "date": "2023-11-07T05:31:56Z",
      "value": 123
    }
  ]
}
Applies to BloodHound Enterprise only

Authorizations

Authorization
string
header
required

Authorization: Bearer $JWT_TOKEN

Headers

Prefer
integer
default:0

Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.

Required range: x >= 0

Path Parameters

data_type
enum<string>
required

The type of posture data to return

Available options:
findings,
exposure,
assets,
session-completeness,
group-completeness,
attack-paths

Query Parameters

environments
string[]
required

Environment IDs

start
string

Beginning datetime of range (inclusive) in RFC-3339 format; Defaults to current datetime minus 30 days

end
string

Ending datetime of range (exclusive) in RFC-3339 format; Defaults to current datetime

Response

200
application/json

OK

The response is of type object.