curl --request PUT \
--url https://bloodhound.specterops.io/openapi.json/api/v2/bloodhound-users/{user_id}/secret \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"secret": "<string>",
"needs_password_reset": true
}
'"[this request has no response data]"Create or set a user’s secret to use as a login password.
curl --request PUT \
--url https://bloodhound.specterops.io/openapi.json/api/v2/bloodhound-users/{user_id}/secret \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"secret": "<string>",
"needs_password_reset": true
}
'"[this request has no response data]"Authorization: Bearer $JWT_TOKEN
Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.
x >= 0User ID
The request body for creating or setting a user secret
No Content This response will contain no response body.
The response is of type string.