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 '{"roleId":"string"}'
{
  "error": "<string>",
  "issues": [
    {}
  ]
}

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

Fields that may be updated on a user via the API

roleId
string
required

Update the user's role assignment

Minimum string length: 1

Response

Successful response