Skip to main content
PUT
/
api
/
users
/
{id}
cURL
curl -X PUT "https://app.cotool.ai/api/users/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","isVerified":true,"organizationId":"string","roleId":"string"}'

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