Appy Pie Update User API Documentation - Update Apps API

Update App User

Update App User API enables you to update the user details including name, password, phone number, and group. To update a user with JSON type content, set header 'content-type: application/json'.

You can refer to the sample code provided on the right side of the screen and switch to your preferred language.

Access the UpdateUser endpoint to update app user details. To access this API endpoint, login/signup to Appy Pie Developer account and obtain the required AccessToken key from the Authentication section.

Below is the request URL and the Method is POST:

POST https://api.appexecutable.com/V4/webservices/editUser.php

Parameter NameRequiredParameter TypeParameter Description
methodYesStringMethod editUser is pre-defined.
apiKeyYesStringAPI key is unique for a user account on Appy Pie. You can generate your API key from your Appy Pie account. Go to My Apps Backend>Users>User Registration API>Generate Key
nameYesStringName of the user to be updated
emailYesStringEmail Address of the User
phoneYesIntPhone Number of the User
groupYesStringUser Group optional
passwordYesStringPassword for the User
passwordTypeYesStringPassword type if set to MD5 do not encrypt password
statusNoString1 for Active and 0 for Inactive

Errors

This error section displays all the errors with details.

Following are the error codes that indicate the success or failure of an API request:

Error CodeMeaning
400Bad Request -- Your request is invalid.
401Unauthorized -- Your API key is wrong.
403Forbidden -- The method requested is hidden for administrators only.
404Not Found -- The specified method could not be found.
405Method Not Allowed -- You tried to access a method with an invalid method.
406Not Acceptable -- You requested a format that is not json.
410Gone -- Request has been removed from our servers.
429Too Many Requests
500Internal Server Error -- We had a problem with our server. Try again later.
503Service Unavailable -- We are temporarily offline for maintenance. Please try again later.
2032API Key is required
2034Email is required
2036Invalid API Key
2038Provide valid API Key
2039Email already exists
2040Phone already exists
2041Email Invalid
To authorize, use this code:

1wget --no-check-certificate --quiet \
2	--method POST \
3	--timeout=0 \
4	--header "ACCESSTOKEN: Access Token Key" \
5	--header "Content-Type: application/json" \
6	--body-data
7	'{
8		"method":"editUser",
9		"apiKey":"Your API Key",
10		"name":"Dev",
11		"email":"t***@g***.c*m",
12		"phone":9xxxxxxxx4,
13		"group":"Test",
14		"password":"1xxxx7",
15		"passwordType":"",
16		"status":"1"
17	 }' \
18	"https://api.appexecutable.com/V4/webservices/editUser.php"

RESPONSE

{
  "successCode": "200",
  "message": "Updated successfully"
}