How to change a bot's profile picture

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

  • 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 to update the image:

curl -X POST \
https://<<REPLACE POD NAME>>.symphony.com/pod/v1/admin/user/<<REPLACE USER ID>>/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 should see a response similar to the below if the change is successful:

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

If not, please review the API documentation or contact support@symphony.com for more assistance.