Ⓜ️
Matar
  • ✍️About Matar
  • 📁Concept
    • 📄Understanding Matar
  • 📁Matar For Communities
    • 📄Hosting on Matar
    • 📄Trial Pilot
    • 📄Community Management
  • 📁🚀 Get Started
    • 📄Language Selection
    • 📄Organization Onboarding
    • 📄Signing Up
  • 📁Matar Features
    • 📄Browsing the App
    • 📄View Questions
    • 📄Changing Subjects
    • 📄Answer Questions
    • 📄Ask a Question
    • 📄Share a Question
    • 📄Like an Answer
    • 📄See Liked Answers
    • 📄Dislike an Answer
    • 📄See Recorded Questions
    • 📄See Recorded Answers
    • 📄Troubleshooting
    • 📄Version
    • 📄FAQ
  • 📁Developer Reference
    • 🗄️Architecture
      • 📄Overview
      • 📄Backend
      • 📄Frontend
      • 📄API Layer
    • 📜Guides
      • 📄Add/delete posts
    • 🛠️API
      • 📄API Flow
      • 📁User Login
        • 📄Login
        • 📄Submit OTP
        • 📄Get Current User
        • 📄Edit User
        • 📄Logout
      • 📄Organization Selection
      • 📄Language and Categories
      • 📄Activity Types
      • 📁Posts
        • 📄Post a New Question
        • 📄Delete a Post
        • 📄Post Activity Type
        • 📄Post Information
        • 📄Post GPT Processing
    • 📶DB Tables and Structure
      • 📄Matar DB tables
      • 📄Code Structure
    • 💻Backend Code
      • 📄Response on a Post from AI
      • 📄Post Sorting
      • 📄User Registration
      • 📄Org Based Code
    • 💻Frontend Code
      • 📄Overview
      • 📄Setting up Project
      • 📄Project Structure
      • 📄Code Directories
        • 📄Broadcast Directory
        • 📄Core Directory
        • 📄Data Directory
        • 📄di Directory
        • 📄domain/repository Directory
        • 📄model Directory
        • 📄retrofit Directory
        • 📄ui Directory
          • 📄dialog
          • 📄features
          • 📄service
  • 🤝Support
Powered by GitBook
On this page
  • Edit User Information
  • Params
  1. Developer Reference
  2. API
  3. User Login

Edit User

PreviousGet Current UserNextLogout

Last updated 1 year ago

Edit User Details

Edit User Information

Params

Header Parameter ⬇️

Header Parameter
Data Type
Description

Bearer {{access_token}} (required)

String

Provide Access Token for fetching User Account Details. Access Token is generated via the Submit OTP API endpoint.

Sample Access Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjgwMDI0MDIzLCJqdGkiOiI3NDQ0YWRjOS1lMDk4LTQ3YmEtOWYxZS04MmQ5MjgzMzAzMjYiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiRVFPS1NVIiwibmJmIjoxNjgwMDI0MDIzLCJleHAiOjE2ODAxOTY4MjN9.UWYCZXenkVS-SVgHlncOht-ckloNcPilUPoYAmH2Yfw.

Body Parameter ⬇️

Body Parameter
Data Type
Description

name (required)

String

Provide Name for Update.

language (required)

String

Provide Language for Update

organization_id (required)

String

Provide Organization ID for update

image_url (required)

String

Provide image url to update in the user profile.


Sample Request ⬇️ (Body Parameter)

curl --location 'https://matar.in.ngrok.io/api/v1/edit_user' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjkyODY2MDMwLCJqdGkiOiIyMzFiNTEzZS0xMTRlLTQzZmUtYTY4My03MmIxNzIxMzVmODQiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiMzk1MDFUIiwibmJmIjoxNjkyODY2MDMwLCJleHAiOjE2OTM3MzAwMzB9.3uHoS3QV0Qfg8bQPPKXW47yPBfkqhCRrbG5lCEm1IoU' \
--header 'Content-Type: application/json' \
--data '{
    "name": "Sri",
    "language": "ur-IN",
    "organization_id": "K7QUEV",
    "image_url": "https://listapp-images.s3.ap-south-1.amazonaws.com/matar_profile_05.png"
}'

Responses ⬇️

Status Code: 🟢200 (200 denotes 'ok')

{
    "_id": "39501T",
    "image_url": "https://listapp-images.s3.ap-south-1.amazonaws.com/matar_profile_05.png",
    "language": "ur-IN",
    "name": "Sri",
    "phone_number": "917846234567",
    "roles": {
        "default": [
            "K7QUEV"
        ]
    }
}

Status Code: 🔴404 (404 denotes 'Not found')

{
      
}

Response Parameter Description:

Response Parameter
Description

_id

User ID

image_url

User Profile Image URL or Avatar

language

name

Name for the User Account

phone_number

Phone Number Linked to User Account

roles : default :

Language in which the user has signed in. To see all language types check API Endpoint.

This contains the organization id in which the User has joined. To see the list of all organizations by org id check API endpoint.

📁
🛠️
📁
📄
Get all Languages
Get List of organizations
Drawing
API:-
https://matar.in.ngrok.io/api/v1/edit_user