• In this API we used multipart/form-data so following way to check this API with post man



Don't

Request Parameters:


Upload / Update avatar for customer by passing file.


URL: ../Api/Client/UploadAvatarByBinary 


Required Parameters :  All


Case-1. Exception Response :
Parameter:
{
    "ApiSecretKey": "i99b98d117m116a112o98k115c111",
    "CustomerGUID": "496DBB2A-F9EB-4522-A804-B108693B69CW",
}
Response :
{
    "Status": 2,
    "Message": "Invalid parameters.",
    "Data": null,
    "ValidationMessage": [
        "The FileData field is required."
    ],
    "ErrorMessage": null
}


Case-2. Success Response :
Parameter:

{

    "ApiSecretKey": "i99b98d117m116a112o98k115c111",

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

    "FileData": Pass file data,

    "LanguageId":"1"

}

Response :

{

    "Status": 1,

    "Message": "Success.",

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

    "ValidationMessage": [],

    "ErrorMessage": null

}