We were planning to make a Podio Out of Office extension so people can add start and end date and the profile picture will be automatically changed with an out of office version in that period.
We cannot see a method to do that in Podio API documentation and tried the solution as per the official comment here.
But that method is not working now. Here is the error we are receiving
Any help on how to do this?
Please try using https instead of http, and PUT instead of POST.
curl -H "Content-Type: application/json"
-H "Authorization: OAuth2 <my_auth_token>"
-X PUT
-d '{"avatar":<avatar_id>}'
"https://api.podio.com/contact/<profile_id>"
Whole solution:
GET /contact/user/{user_id}
(let's call the result p
) p.image.link
(should be a URL) image_id
PUT
to /contact/{p.profile_id}
the value {"avatar" : <image_id>}