Skip to main content

Update a User

Update a user given their userId.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Update Object endpoint instead.

Endpoint

PUT /v1/users/:userId

Parameters

ParameterDescriptionTypeRequired
userIdThe id of the user to update. Note that id cannot be changed.URL paramyes
emailThe email of the user.JSON bodyno

Request

curl "https://api.warrant.dev/v1/users/d6ed6474-784e-407e-a1ea-42a91d4c52b9" \
-X PUT \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{ "email": "updated@email.com" }'

Response

{
"userId": "d6ed6474-784e-407e-a1ea-42a91d4c52b9",
"email": "updated@email.com"
}