... | ... | @@ -4,48 +4,50 @@ |
|
|
POST /profile/update_email
|
|
|
```
|
|
|
|
|
|
|
|
|
### Form Data
|
|
|
|
|
|
| Attribute | Description |
|
|
|
| ----------- | -------------------------------------------------------|
|
|
|
| email | enter new email |
|
|
|
|
|
|
|-----------|--------------------|
|
|
|
| **email** | Enter the 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 |
|
|
|
There are 3 types of responses, each associated with a status code.
|
|
|
|
|
|
| Status Code | Description |
|
|
|
|-------------|-------------------------------------------------------|
|
|
|
| **200** | Email is updated successfully. |
|
|
|
| **400** | Bad request format or missing required attributes. |
|
|
|
| **401** | Unauthorized user, invalid Access Token. |
|
|
|
|
|
|
### Response Examples
|
|
|
|
|
|
##### 200
|
|
|
```
|
|
|
#### **200: Success**
|
|
|
```json
|
|
|
{
|
|
|
"Email": "mhdkhalid@gmail.com",
|
|
|
"message": "email Updated"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
##### 400
|
|
|
```
|
|
|
|
|
|
#### 400: Bad Request
|
|
|
```json
|
|
|
{
|
|
|
"message": "Missing required parameters: 'email"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
##### 401
|
|
|
```
|
|
|
|
|
|
#### 401: Unauthorized
|
|
|
```json
|
|
|
{
|
|
|
"Unauthorized": "Invalid Access Token"
|
|
|
}
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|