Request Parameters:


Upload / Update avatar for customer.


URL: ../Api/Client/UploadAvatar 


Header:

Content-Type:application/json


Required Parameters :  All


Case-1. Exception Response :
Parameter:

{

    "ApiSecretKey": "i99b98d117m116a112o98k115c111",

    "CustomerGUID": "496DBB2A-F9EB-4522-A804-B108693B69CW",

    "FileBytes": [101,25,20,21,22,5,3,5,66,85,96,12],

    "FileContentType": "image/png",

    "FileName": "Tiger",

    "FileExtension": ".png"

}
Response :
{

    "Status": 0,

    "Message": "Invalid parameters.",

    "Data": null,

    "ValidationMessage": [

        "Customer not available."

    ],

    "ErrorMessage": null

}


Case-2. Success Response :
Parameter:

{

    "ApiSecretKey": "i99b98d117m116a112o98k115c111",

    "CustomerGUID": "496DBB2A-F9EB-4522-A804-B108693B69CE",

    "FileBytes": [101,25,20,21,22,5,3,5,66,85,96,12],

    "FileContentType": "image/png",

    "FileName": "Tiger",

    "FileExtension": ".png"

}

Response :

{

    "Status": 1,

    "Message": "Success.",

    "Data": "http://localhost:15536/images/thumbs/0001085_120.png",

    "ValidationMessage": [],

    "ErrorMessage": null

}