|
|
#### Request
|
|
|
|
|
|
```
|
|
|
POST /profile/update_email
|
|
|
```
|
|
|
|
|
|
### Form Data
|
|
|
|
|
|
| Attribute | Description |
|
|
|
| ----------- | -------------------------------------------------------|
|
|
|
| email | enter new email |
|
|
|
|
|
|
|
|
|
### Response
|
|
|
|
|
|
There are 3 type of responses each associated with a status code.
|
|
|
|
|
|
| Status code | Description |
|
|
|
| ----------- | -------------------------------------------------------|
|
|
|
| 200 | email is Updated. |
|
|
|
| 400 | Bad request format or not attributes are provided. |
|
|
|
| 401 | Unauthorized user invalid Access Token |
|
|
|
|
|
|
|
|
|
### Response Examples
|
|
|
|
|
|
##### 200
|
|
|
```
|
|
|
{
|
|
|
"Email": "mhdkhalid@gmail.com",
|
|
|
"message": "email Updated"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
##### 400
|
|
|
```
|
|
|
{
|
|
|
"message": "Missing required parameters: 'email"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
##### 401
|
|
|
```
|
|
|
{
|
|
|
"Unauthorized ": "Invalid Access Token"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|