Upload staff photo

This page will help you get started with Upload staff photo.

API url
Staging: https://app.staging.rohealth.ng/api/external/employee/photo/upload
Production: https://app.rohealth.ng/api/external/employee/photo/upload

POST request

Here is the body payload

{
    "id"{user id},
    "file":"{image url}"
}

Below is a sample body payload

{
    "id":825,
    "file": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAA51BMVEX///8AZpkzmWaZAAAAZJgYklnj8Onq9O8AX5UAWJEAYpcAW5MAXZQAWZIsl2IAVpCTAACQAAD2+vhCn3AklV7k7PLx9vnX4+vq8fXR5dock1tRiK6owdTz+fbH1+PV4eqQsMhEgak4e6bJ2eS1ZGT79vb27Oy7cnIbbp6FqcO5zdxikrROo3eYtsy+2ssudqN+uZl1nrzu3d3dvLyvU1OrSUm/fHzixsahKSnPn5/HjY1rsItdqoGHqsSRwqiv0r/Zs7OlNTXo0tKzX1+dFhakMjLMmpqtT0/Uqamax6+w0r92tZMAi0yuVwxRAAAPhUlEQVR4nO1daVfbOhDFjkMdO04gzQIhkACFAoHSdIGWlu6vr8v7/7/n2SFAPJoZjWSlhh7u6ZdybEdXM5pN29LSAx7wgAc84D5h78X5yxTnL/bLbskCsHd+8bqyujLDauX1xcu9stvkEp9epbQqOaR/eP3jLyG5fwbZ3bBcffqi7NYVx/6TVZzeFVZf3XeOZyy/Kcen91lXzyuEfuZH5Key22kNvQBnYnxSdkvtsPdZIMCZGL/dRw+5L6V3xfH+GZwXYgHOKH4pu8WGMCV47yjumfLLKN6rsfjGgmGlUnarDfDUWEen+LfsdovxSegHIVbelt1yIfbsJJhi9Z4Mxa+2BCuVz2W3XYQvljqaYeVl2a2X4LM9wUrlW9mtF+C8gAhTIX4qu/16vC5CsFJ5U3b7tXhRSISpOb3zwduFtauY4WnZDHT4VpBgZaVsBhoUVdKU4XnZHHh8L6qklZWLsjnweFWUYKXyT9kceBQnWFm509XF/cLDsNSSTUf/yHnhYSgKa3rd4mwQdOJt7TOfXDD8rm/JwSI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GaVpup5Txq/P2ZxXFiYFIXgMCquG2GXSOr5xihtxgjmoe++LUwJIsdgre4LEdTA/6OXqcYBiVoav3gT2joDcZ/Woyuiwh6bEXiLMAF6gfCyxtdYiLPNooiktRkF4DhqW5aww2CZPuPjsB5CAsqxfjF3uKdPIPL2oKHYxi7qPkWQXciT8wt+C08CpVgbbIgOQZhfLioRNAQa5Ome45BPb68I/wydEcRvV3OBlHslT3+FBztuBNk2NxwVD53i95hGBe3OkGUeKPS/J8WW+MkFs3jkNJL4onZOtE/j6NxZFFdmkovTDzDMmtZ2B3tNA1FmXqG2vaJ+zr24tDdutxJknqoXcuRkasn8fborusmit5gshPV4noYYUSzImMc17ztw6P7JDsVa8Ojk8nGadBs1pIkTuL0X5LUmjXvdGNycjS8Q069MLqdTm+4u7s7HPY6a38TsQc84AEPeMADHnAH8D8Jv35+Hpa/rQAAAABJRU5ErkJggg=="
}

Below is the response body

{
    "status": {
        "code": 100,
        "desc": "Beneficiary photo successfully uploaded!"
    },
    "entity": {
        "path": "https://rohealth-imgs.s3.amazonaws.com/F16DF6D20B44AD00DD1DC8FC5BB0EC19.png"
    }
}