Update User Profile
put
/v1/userPart of User.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
nameoptional | string | User's display name |
emailoptional | string (email) | User's email address |
reauth_passwordoptional | string | Password re-entry, required to change email for a password-holding account |
reauth_assertionoptional | object | A fresh mgmt-flow passkey assertion, required to change email for a passkey-only account |
Example request
curl
curl -X PUT "https://api.robosystems.ai/v1/user" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"email": "user@example.com",
"reauth_password": "string",
"reauth_assertion": {}
}'Responses
200 Successful Response
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
idrequired | string | Unique identifier for the user | ||||||||||||
nameoptional | string | User's display name | ||||||||||||
emailoptional | string | User's email address | ||||||||||||
email_verifiedoptional | boolean | Whether user's email is verified Default: | ||||||||||||
accountsoptional | AccountInfo[] | User's authentication accounts AccountInfo fields
|
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 409 | Email already in use |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |