Skip to main content

Update User Profile

This API endpoint allows updating a user's profile information by sending a PUT request with the user ID and the updated details in the request body. The request body can include fields such as name, description, notification settings, and password etc. Upon successful update, the server returns the updated user object.

Query Parameters
    client_auth_token string required

    Client API token

Header Parameters
    access-token string required

    user access token

    client string required

    client access token

    expiry integer required

    token expiry timestamp

    token-type string required

    token type

    Example: Bearer
    uid string required

    user uid

    Example: user@quranreflect.com
Request Body
    name string deprecated

    Full name of user, this is deprecated, please use first_name and last_name instead.

    first_name string

    User's first name.

    last_name string

    User's last name.

    follow_notification boolean
    comments_notification boolean
    description string

    user bio

    default_lang string

    ISO code of the language that the user prefers to read posts in

    password string
    password_confirmation string
    onesignal_player_id string
    apns_token string
    avatar string

    avatar file

Responses

Example response

Response Headers
  • access-token string

    user access token

  • client string

    client token

  • expiry string

    timestamp of token expiry date

  • uid string

    user uid


Schema
    data object required

    QuranReflect User model.

    id integer

    The Id of the user

    email string

    The email of the user

    name string deprecated

    Full name of user. It is deprecated, please use first_name and last_name instead.

    username string

    The username

    verified boolean

    true if user is a verified member

    follow_notification boolean
    comments_notification boolean
    description string nullable

    user bio

    default_lang string

    ISO code of the language that the user prefers to read posts in.

    uid string

    User uniqe identifier

    provider string

    User account provider.

    onesignal_player_id string nullable

    User's OneSignal subscription Id.

    post_as boolean

    Whether user is allowed to post as another user.

    android_registration_id string nullable

    The registration Id of the user's Android device.

    sign_up_type string nullable

    Possible values: [OLD USER, web, QR_IOS, QR_ANDROID, QuranMemorizer, QF_AUTH]

    The signup type

    emails_disabled boolean

    Whether the user disabled receving emails or not.

    first_name string

    The user's first name.

    last_name string nullable

    The user's last name.

    is_admin? boolean

    Whether the user is an admin.

    user_avatar_url string nullable

    The user's avatar url.

    rooms_list object[]

    List of rooms the user is a member of.

  • Array [
  • id string

    The Id of the room

  • ]
  • user_type string nullable

    Possible values: [0, 1]

    The type of the user. 0 = student of knowledge.1 = scholar.

    status string required

    Default value: succes

    message string required

    Possible values: [Your profile has been updated successfully., Your account has been created successfully, Please check your email to verify it.]

    success response message

Loading...