Update User
api/admin/users/update
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/users/update Changed · +12 / -15 lines
# Update User ## Path parameters ## Body parameters ## Returns ## Example ### Response (200) ## Update User ### Path Parameters ### Body Parameters ### Returns ### Example #### Response
---- -title: Update User -url: https://platform.claude.com/docs/en/api/admin/users/update ---- +# Update User -## Update User +**POST** `/v1/organizations/users/{user_id}` -**post** `/v1/organizations/users/{user_id}` - For Claude Enterprise organizations, this endpoint's availability is in beta. -### Path Parameters +## Path parameters - `user_id: string` ID of the User. -### Body Parameters +## Body parameters - `role: "billing" or "claude_code_user" or "developer" or 2 more`
- `"user"` -### Returns +## Returns -- `User object { id, added_at, email, 3 more }` +- `User object` - `id: string`
RFC 3339 datetime string indicating when the User joined the Organization. + format: date-time + - `email: string` Email of the User.
For Users, this is always `"user"`. - - `"user"` + default: user -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/users/$USER_ID \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \
}' ``` -#### Response +### Response (200) ```json {