curl --request PUT \
--url https://bloodhound.specterops.io/openapi.json/api/v2/asset-groups/{asset_group_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"data": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"name": "<string>",
"tag": "<string>",
"system_group": true,
"selectors": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"asset_group_id": 123,
"name": "<string>",
"selector": "<string>",
"system_selector": true
}
],
"member_count": 123
}
}Updates an asset group
curl --request PUT \
--url https://bloodhound.specterops.io/openapi.json/api/v2/asset-groups/{asset_group_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"data": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"name": "<string>",
"tag": "<string>",
"system_group": true,
"selectors": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"time": "2023-11-07T05:31:56Z",
"valid": true
},
"asset_group_id": 123,
"name": "<string>",
"selector": "<string>",
"system_selector": true
}
],
"member_count": 123
}
}Authorization: Bearer $JWT_TOKEN
Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.
ID of the asset group record to retrieve
The request body for updating an asset group.
OK
Show child attributes