API - change avatar for /v0/me

Hi,

I tried to change my profile avatar but after updating my profile m avatar wont change.

I'm also playing with API and tried to change avatat with PATCH https://api.smartcitizen.me/v0/me/avatar
I follow step 1 of 2 and put response info to step 2 of 2 and POST to https://smartcitizen.s3-eu-west-1.amazonaws.com
and get STATU OK 200 but my avatar URL is still default one.

Here are real data

Step 1 of 2
curl -X PATCH -H "Cache-Control: no-cache" -H "Postman-Token: 9c506d4d-33d3-b4e4-1de4-dfe806b8f404" -H "Content-Type: application/x-www-form-urlencoded" -d 'access_token=fac74568b9215020ce467bb53fb45914e7a8fd39a85b03e867e6864adf88392e&filename=https://66.media.tumblr.com/avatar_a2a6f4fa702a_128.png' "https://api.smartcitizen.me/v0/me/avatar"

Step 2 of 2
curl -X POST -H "Cache-Control: no-cache" -H "Postman-Token: be5ca9ec-8afc-27b2-a732-f3f75a6617e3" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "key=avatars/3ec/1bqs9jn.https://66.media.tumblr.com/avatar_a2a6f4fa702a_128.png" -F "policy=eyJleHBpcmF0aW9uIjoiMjAxNi0wOC0xMlQxOTo0Njo0M1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJzbWFydGNpdGl6ZW4ifSxbInN0YXJ0cy13aXRoIiwiJGtleSIsImF2YXRhcnMvM2VjLzFicXM5am4uaHR0cHM6Ly82Ni5tZWRpYS50dW1ibHIuY29tL2F2YXRhcl9hMmE2ZjRmYTcwMmFfMTI4LnBuZyJdLHsiYWNsIjoicHVibGljLXJlYWQifSx7InN1Y2Nlc3NfYWN0aW9uX3N0YXR1cyI6IjIwMCJ9LFsiY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA3Mzc0MTgyNF1dfQ==" -F "Signature=D8/ptQhIyTkKh02xxHyfRWFjoaE=" -F "AWSAccessKeyId=AKIAJ753OQI6JPSDCPHA" -F "acl=public-read" -F "success_action_status=200" -F "file=https://66.media.tumblr.com/avatar_a2a6f4fa702a_128.png" "https://smartcitizen.s3-eu-west-1.amazonaws.com"
Tagged:
Sign In or Register to comment.