Skip to main content
PUT
/
api
/
users
/
{id}
cURL
curl --request PUT \
  --url https://app.cotool.ai/api/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "isVerified": true,
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "roleId": "<string>"
}'
"<any>"

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

id
string<uuid>
required

User ID

Body

application/json
email
string<email>

New email address for the user (will be normalized and validated)

isVerified
boolean

Update the user verification status

organizationId
string<uuid>

Move the user to a different organization

roleId
string

Update the user's role assignment

Response

200 - application/json

Successful response

The response is of type any.