sepahr
  1. Users
sepahr
  • profile
    • Providers
      • Increment provider page view count
      • getProviderNotifyCell
      • Update provider fields
      • Store a provider
      • get providers information
    • Users
      • get image
        GET
      • upload image
        POST
      • Get doctor master slug
        GET
      • insert new user
        POST
      • get users informations
        GET
      • get user information
        GET
      • update user information
        PATCH
      • send otp to verify user new cell
        PATCH
    • Memberships
      • deleteMembership
      • Insert membership record
      • Get membership records
    • Providers Specialities
      • delete a record of providers specialities
      • Update speciality alongside academic degree of a provider
      • Store list of specialities alongside academic degree for a provider
      • Get list of provider's specialities
    • SpecialitiesTags
      • tags of spciality
  • sepahr
    • anonymous call
      POST
    • calls search
      POST
    • Download Call Recording
      POST
  1. Users

update user information

PATCH
/v1/users/{id}
Users
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://apigw.paziresh24.com/v1/users/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": {},
    "family": {},
    "national_code": {},
    "image_name": {},
    "gender": {},
    "sso_id": {},
    "otp": "4556",
    "cell": {}
}'
Response Response Example
{
    "users": [
        {
            "id": {},
            "name": {},
            "family": {},
            "gender": {},
            "sso_id": {},
            "cell": "913000000",
            "national_code": "124666554"
        }
    ]
}

Request

Path Params
id
object 
required
Body Params application/json
name
object 
optional
family
object 
optional
national_code
object 
optional
image_name
object 
optional
gender
object 
optional
sso_id
object 
optional
otp
string 
optional
The otp sent to the user new cell.
Example:
4556
cell
object 
optional
user new cell should be sent along with otp
Examples

Responses

🟢200Get Authenticated user information
application/json
Body
users
array[object (authenticated_user) {7}] 
optional
id
object 
optional
name
object 
optional
family
object 
optional
gender
object 
optional
sso_id
object 
optional
cell
string  | null 
optional
cell of the user
Example:
913000000
national_code
string  | null 
optional
national_code of the user
Example:
124666554
Modified at 2024-06-23 07:51:49
Previous
get user information
Next
send otp to verify user new cell
Built with