CTIX
Network live
CTIXPUT

Update User

Source docs
PUThttps://cs-testv2.cyware.com/ctixapi/rest-auth/users/{user-id}/

Updates the details of a user.

Path Parameters

NameTypeRequiredDescription
user-idstringrequired

Pass the ID of the user to update details.

Body Parameters

NameTypeRequiredDescription
first_namestringrequired

Pass the first name of the user.

last_namestringrequired

Pass the last name of the user.

is_activebooleanoptional

Pass True to make a profile active. Else pass False.

contact_numberstringoptional

Pass the phone number or mobile number of the user.

country_codestringoptional

Pass the country code in which the user is located.

email_alertsbooleanoptional

Pass True if the user wants to receive email alerts on the associated email ID from Intel Exchange. Else, pass False.

sms_alertsbooleanoptional

Pass True if the user wants to receive the sms alerts on the associated contact number from Intel Exchange. Else pass False.

groupsarrayrequired

Pass the list of permission groups for your user.

allowed_tlparrayoptional

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.

usernamestringrequired

Pass the LDAP username of the user.

default_page_sizenumberoptional

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.

CTIXConnect to Intel ExchangeRequired to change data
Credentials required for PUT

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.

Path Parameters
Request body (JSON)Valid JSON
cURL
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.

JavaScript
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.

Python
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.

Request Body
{
  "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.

Example Response
{
  "details": "Successfully updated"
}

View-only example — running live API calls requires a role with snippet testing access.