Update User Profile
Update the personal information of a user account
- cURL
- JavaScript
curl --location --request PUT 'https://partner-apistg.ahamove.com/v3/accounts' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
"name": "ABC",
"email": "abc@gmail.com"
}'
const myHeaders = new Headers();
myHeaders.append('Content-Type', 'application/json');
myHeaders.append('Authorization', 'Bearer <token>');
const raw = JSON.stringify({
name: 'ABC',
email: 'abc@gmail.com',
});
const requestOptions = {
method: 'PUT',
headers: myHeaders,
body: raw,
redirect: 'follow',
};
fetch('https://partner-apistg.ahamove.com/v3/accounts', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
HTTP Request
PUT https://partner-apistg.ahamove.com/v3/accounts
Headers
Parameter | Value | Required | Description |
---|---|---|---|
Content-Type | application/json | Yes | |
Authorization | Bearer <token> | Yes | Token of the user account |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
name | String | No | User's name |
String | No | Email address |
Response
JSON response example:
{}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
401 | NOT_AUTHORIZED | Invalid token |
406 | Not Acceptable | Invalid email format |
409 | EXISTED_EMAIL | Email already exists |
500 | INTERNAL_SERVER_ERROR | We had a problem with our server. Try again later |
503 | SERVICE_UNAVAILABLE | We're temporarily offline for maintenance. Please try again later |