/api/user/profileAuthenticatedReplace my profile
Replaces the caller's profile name fields. Full-replacement semantics: fields that are omitted or set to null are cleared. Unknown fields are rejected.
put_api_user_profileAccountAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
Request body
Required
| Property | Type | Description |
|---|---|---|
| username | string | null | null | minLength: 3maxLength: 32pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$ |
| first_name | string | null | null | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| middle_name | string | null | null | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| last_name | string | null | null | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| display_name | string | null | null | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
Responses
| Property | Type | Description |
|---|---|---|
| success* | true | |
| profile* | object | |
| username | string | minLength: 3maxLength: 32pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$ |
| first_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| middle_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| last_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| display_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
Example request
curl -X PUT 'https://auth.schemavaults.com/api/user/profile' \
-b 'refresh_token_<auth_server_app_id>=<value>' \
-H 'Content-Type: application/json' \
-d '{
"username": "string",
"first_name": "string",
"middle_name": "string",
"last_name": "string",
"display_name": "string"
}'