Skip to main content
PUT
/
api
/
v2
/
bloodhound-users
/
{user_id}
/
secret
Create or Set User Secret
curl --request PUT \
  --url http://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]"
Applies to BloodHound Enterprise and CE

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

user_id
string<uuid>
required

User ID

Body

application/json

The request body for creating or setting a user secret

secret
string
needs_password_reset
boolean

Response

No Content This response will contain no response body.

The response is of type string.