PUT api/user/profile/updatephoto

update user profile pic

Request Information

URI Parameters

None.

Body Parameters

user profile photo to update.

UpdateProfilePicReq
NameDescriptionTypeAdditional information
user_id

user id to update profile pic

integer

Required

user_photo

user image when it select from his/her devices. It is a base64 image

string

Required

Request Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "user_photo": "sample string 2"
}

application/xml, text/xml

Sample:
<update_profile_pic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg">
  <user_id>1</user_id>
  <user_photo>sample string 2</user_photo>
</update_profile_pic>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

On success, returns success. On failure, fail response.

Response
NameDescriptionTypeAdditional information
resp_code

Lifetrons response code

string

None.

resp_msg

Lifetrons response message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "resp_code": "sample string 1",
  "resp_msg": "sample string 2"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">
  <resp_code>sample string 1</resp_code>
  <resp_msg>sample string 2</resp_msg>
</Response>