POST APIControllers/Wellness/UploadProfilePicture
Request Information
URI Parameters
None.
Body Parameters
RequestUploadProfilePictureName | Description | Type | Additional information |
---|---|---|---|
PetId | integer |
None. |
|
Attachment | Attachment |
None. |
|
SecurityKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "PetId": 1, "Attachment": { "<Name>k__BackingField": "sample string 1", "<Description>k__BackingField": "sample string 2", "<data>k__BackingField": "QEA=", "<Latitude>k__BackingField": "sample string 3", "<Longitude>k__BackingField": "sample string 4" }, "SecurityKey": "sample string 2" }
application/xml, text/xml
Sample:
<RequestUploadProfilePicture xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models"> <SecurityKey>sample string 2</SecurityKey> <Attachment> <_x003C_Description_x003E_k__BackingField>sample string 2</_x003C_Description_x003E_k__BackingField> <_x003C_Latitude_x003E_k__BackingField>sample string 3</_x003C_Latitude_x003E_k__BackingField> <_x003C_Longitude_x003E_k__BackingField>sample string 4</_x003C_Longitude_x003E_k__BackingField> <_x003C_Name_x003E_k__BackingField>sample string 1</_x003C_Name_x003E_k__BackingField> <_x003C_data_x003E_k__BackingField>QEA=</_x003C_data_x003E_k__BackingField> </Attachment> <PetId>1</PetId> </RequestUploadProfilePicture>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfByte[]Name | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Message | string |
None. |
|
Entity | Collection of byte |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Message": "sample string 2", "Entity": "QEA=" }
application/xml, text/xml
Sample:
<ResponseOfbase64Binary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnePlan.Core"> <Entity>QEA=</Entity> <Message>sample string 2</Message> <Success>true</Success> </ResponseOfbase64Binary>