Edit User

URL : v3/user/update/api/{id}ser/update/api/6

HTTP Method : POST

Response Format: JSON

Parameters:

Parameter Data Type Optional/Required Description
first_name String Required It the first name of the user
last_name String Required It the last name of the user
user_name String Configurable It the user name of the user and it configurable from backend form settings
work_phone String Configurable It the work phone no of the user and it configurable from backend form settings
email String Configurable It the email id of the user and it configurable from backend form settings
mobile_phone String Configurable It the mobile phone no of the user and it configurable from backend form settings
custom_id String/Array Optional “custom_(id of the custom field)”

Response

  • Response Format: JSON
  • Returns JSON which contains below response

Sample JSON Success Response :

 

{

"success": true,

"message": "Updated Successfully"

}

Possible Errors/Failures:

 

 

{

"success":false,

"message":{

"field":"this field is required"

}

}

{

"success": false,

"message": {

"email": "This email/username has already been taken",

"user_name": "This email/username has already been taken",

"mobile_phone": "The mobile phone has already been taken."

}

}

Leave a Reply

Your email address will not be published. Required fields are marked *