PUT/api/user/profileAuthenticated

Replace 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.

operationId put_api_user_profileAccount

Authentication & permissionsAuthenticated

Any authenticated user

Accepted credentials
Who may call
Any authenticated user

Request body

Required

application/json
UpdateUserProfileRequestThe new profile name fields; omitted or null fields are cleared.
PropertyTypeDescription
usernamestring | null | null

minLength: 3maxLength: 32pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$

first_namestring | null | null

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

middle_namestring | null | null

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

last_namestring | null | null

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

display_namestring | null | null

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

JSONExample
"username""string"
"first_name""string"
"middle_name""string"
"last_name""string"
"display_name""string"

Responses

application/json
UserProfileResponseThe caller's profile name fields; absent fields are unset.
PropertyTypeDescription
success*true
profile*object
usernamestring

minLength: 3maxLength: 32pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$

first_namestring

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

middle_namestring

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

last_namestring

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

display_namestring

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

JSONExample
"success"true
"profile"
"username""string"
"first_name""string"
"middle_name""string"
"last_name""string"
"display_name""string"

Example request

bashcurl
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"
}'

Other methods on this path