Skip to main content

Update a user with the REST API

This use case scenario provides the Identity REST API request and payload for updating a Veracode user. The request applies to both user accounts and API service accounts.

Send the following request to update an existing account:

http --auth-type=veracode_hmac PUT "https://api.veracode.com/api/authn/v2/users/{userId}?partial=true" < input.json

The API passes the JSON file that you populate with the necessary values as shown in this example payload:

{
"ip_restricted": true,
"allowed_ip_addresses": ["72.22.163.41"]
}