Objective:
- Adding an Avatar image or profile picture to a contact via the API
Environment:
- Clio Manage
- Clio Manage API
Additional Information:
Images can be converted to base64 using online tools such as https://www.base64-image.de/ or can be converted in your application via an upload process that stores the image in base64.
The image must be a valid GIF, JPG, or PNG image of less than 2 megabytes in size.
Procedure:
The Avatar data field will need to include the mimetype in the format of "data:image/{filetype};base64,{base64 file}. An example of the appropriate formatting is shown below:
{
"data": {
"first_name": "Avatar",
"last_name": "Doe",
"type": "Person",
"avatar": {"image":"data:image/png;base64,zxcasdzxcasd"}
}
}
Where "zxcasdzxcasd" is the base64 image