Publication Date – May 21, 2020
https://api.bitsighttech.com/ratings/v2/users/user_guid
Edit an existing user.
Parameters
*Required.
Parameter | Description | Values | |
---|---|---|---|
user_guidPath |
Identify the user to edit. | [String] User unique identifier [user_guid ]. See GET: Users. |
|
dataBody |
The user details to edit. | [Object] | |
groupData |
Assign an Access Control Group for the user. | [String] Group unique identifier [group_guid ]. See GET: Access Control Groups. |
|
rolesData |
Set a role for the user. |
[String] User role slug name. See user roles. Example:
Though this parameter accepts an array of role objects, only one role is accepted per request. |
|
friendly_nameData |
The preferred name for the user. | [String] | |
is_company_api_tokenData |
Assign the user as a company API token. | [Boolean] true = Assign the user as a company API token. |
|
is_available_for_contactData |
Assign the user as a subscription contact when other users request to add companies to the portfolio. | [Boolean] true = Assign the user as a subscription contact.
|
|
formal_nameData |
The full name for the user. | [String] | |
|
The email address for the user. This is also used as part of their Bitsight platform login credentials. | [String] | |
featuresData |
Update user-managed features. | [Array] Feature slug name and value parameter. See features.
Example:
|
|
valueData |
Specify if a feature is enabled. | [Boolean] true = Enable the selected feature. |
Example Request
cURL:
curl 'https://api.bitsighttech.com/ratings/v2/users/james123-4567-8900-0098-7654321james' -u api_token -X PATCH -H 'Accept: application/json' -H 'Content-Type: application/json' --data-binary '{"group":"88888888-eeee-8888-eeee-888888888888","email":"emma@blueseas.com"}' --compressed
JSON:
{ "group":"88888888-eeee-8888-eeee-888888888888", "email":"emma@blueseas.com" }