put https://api.assetpanda.com/v3/users/
check
Update an Existing Account
Updates a user account, to log in to Asset Panda, this call cannot be used to create a new account, because the user id parameter is required. This user id can be found by using either one of the three calls:
GET Retrieve Users
GET Retrieve User Details
GET Retrieve User Templates
All three calls will provide the required and optional info needed.
See Parameters and Authentication below.
Sample Payload
{
"device": "mobile", //descripton for the account in this example it's a mobile use account
"user": {
"first_name": "Appolo",
"last_name": "Panda",
"email": "[email protected]",
"password": "password",
"password_confirmation": "password"
}
}
Parameters
Path Parameters | Required Optionsal | Description | Type |
---|---|---|---|
user_id | Required | This is the id parameter retuned as noted above wtih the GET calls avalible | integer |
Body Parameters | Required/Optional | Description | Type |
---|---|---|---|
first_name | required | The user's first name | string |
last_name | required | The user's last name | string |
email | required | this is the user's e-mail that will be used to login to the account | string |
password | required | this is the password to login to the account | string |
confirm_password | required | confirm the password entered to allow the user to login to the account | string |
phone | optional | the phone number for the user acocunt | string |
template_rule_id | optional | this is the user tempate that will be updated for the user. | integer |
Authentication
Key | Description |
---|---|
Authorization | Your Bearer token. |