Updates the details of a user.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| user-id | string | required | Pass the ID of the user to update details. |
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| first_name | string | required | Pass the first name of the user. |
| last_name | string | required | Pass the last name of the user. |
| is_active | boolean | optional | Pass True to make a profile active. Else pass False. |
| contact_number | string | optional | Pass the phone number or mobile number of the user. |
| country_code | string | optional | Pass the country code in which the user is located. |
| email_alerts | boolean | optional | Pass True if the user wants to receive email alerts on the associated email ID from Intel Exchange. Else, pass False. |
| sms_alerts | boolean | optional | Pass True if the user wants to receive the sms alerts on the associated contact number from Intel Exchange. Else pass False. |
| groups | array | required | Pass the list of permission groups for your user. |
| allowed_tlp | array | optional | Pass the list of allowed TLPs a user can access in the threat data. You can access threat data information for all TLPs if no TLP value is passed. |
| username | string | required | Pass the LDAP username of the user. |
| default_page_size | number | optional | Pass the default page size for listing APIs for the user. |
Run it
Use the Request parameters panel to enter path IDs, query values, JSON body, and credentials. Then run any snippet below — all languages use the same values. Base URL: https://cs-testv2.cyware.com/ctixapi (change in API Settings).
Playground
Request parameters
Edit values here before running any snippet below (cURL, JavaScript, or Python). Code blocks are reference only — your inputs above are what gets sent.
Open API (HMAC signature) · Get credentials from Cyware Admin → Open API → Generate Credentials.
Signature and Expires are generated when you run a request. Access ID and Secret Key stay in memory for this tab only.
Credentials from Authentication auto-fill here for this product. If fields are empty after connecting, refresh this page or open the product docs again.
curl --request PUT \
--url "https://cs-testv2.cyware.com/ctixapi/rest-auth/users/19f7a767-eab7-4057-920b-d971617e5070/?AccessID=%3Cyour%20access%20id%3E&Signature=%3Cyour%20signature%3E&Expires=%3Cyour%20expires%3E" \
--data '{
"first_name": "John",
"last_name": "Doe",
"is_active": true,
"contact_number": "9876543210",
"country_code": "91",
"email_alerts": false,
"sms_alerts": false,
"groups": [
{}
],
"allowed_tlp": [
"RED"
],
"username": "JohnDoe",
"default_page_size": 10
}'View-only example — running live API calls requires a role with snippet testing access.
const url = "https://cs-testv2.cyware.com/ctixapi/rest-auth/users/19f7a767-eab7-4057-920b-d971617e5070/?AccessID=%3Cyour%20access%20id%3E&Signature=%3Cyour%20signature%3E&Expires=%3Cyour%20expires%3E";
const response = await fetch(url, {
method: "PUT",
headers: {},
body: JSON.stringify({
"first_name": "John",
"last_name": "Doe",
"is_active": true,
"contact_number": "9876543210",
"country_code": "91",
"email_alerts": false,
"sms_alerts": false,
"groups": [
{}
],
"allowed_tlp": [
"RED"
],
"username": "JohnDoe",
"default_page_size": 10
}),
});
const text = await response.text();
let data;
try { data = JSON.parse(text); } catch { data = text; }
console.log(response.status, data);View-only example — running live API calls requires a role with snippet testing access.
import requests
url = "https://cs-testv2.cyware.com/ctixapi/rest-auth/users/19f7a767-eab7-4057-920b-d971617e5070/"
params = {
"AccessID": "<your access id>",
"Signature": "<your signature>",
"Expires": "<your expires>"
}
headers = {}
payload = {
"first_name": "John",
"last_name": "Doe",
"is_active": true,
"contact_number": "9876543210",
"country_code": "91",
"email_alerts": false,
"sms_alerts": false,
"groups": [
{}
],
"allowed_tlp": [
"RED"
],
"username": "JohnDoe",
"default_page_size": 10
}
response = requests.request("PUT", url, params=params, headers=headers, json=payload)
print(response.status_code)
print(response.text)View-only example — running live API calls requires a role with snippet testing access.
{
"first_name": "John",
"last_name": "Doe",
"is_active": true,
"contact_number": "9876543210",
"country_code": "91",
"email_alerts": false,
"sms_alerts": false,
"groups": [
{}
],
"allowed_tlp": [
"RED"
],
"username": "JohnDoe",
"default_page_size": 10
}View-only example — running live API calls requires a role with snippet testing access.
{
"details": "Successfully updated"
}View-only example — running live API calls requires a role with snippet testing access.