How to change a bot's profile picture

To change a bot's profile picture, you must have the following:

  • Administrative access.
  • A png/jpg/gif that is 2MB or less.
  • The ability to run API calls.
  • The ACCESS_USER_PROVISIONING_API entitlement.
  • The UserID of the target bot account.

Note: Be sure to use a similar image to the base64 encoding tool to convert the image you want to set as the profile picture.

If all the above criteria are met, run the below API command to update the image, where companyabc is the name of your pod and John.Smith is the UserID.

curl -X POST \
https://<<companyabc.symphony.com/pod/v1/admin/user/<<John.Smith>>/avatar/update \
-H "sessionToken: <<REPLACE SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "image": "<<REPLACE BASED64 ENCODED IMAGE>>"
}' 

Note: Update any tags with REPLACE with the correct information.

You will see a response similar to the one below if the change is successful:

{
"format": "TEXT",
"message": "OK"
}

If the bot's profile picture is not updated successfully, please contact the Symphony Support team at support@symphony.com