POST account/update_profile_image

Updated on Mon, 2012-09-10 09:09

Updates the authenticating user's profile image. Note that this method expects raw multipart data, not a URL to an image.

This method asynchronously processes the uploaded file before updating the user's profile image URL. You can either update your local cache the next time you request the user's information, or, at least 5 seconds after uploading the image, ask for the updated URL using GET users/show.

Resource URL

https://api.twitter.com/1.1/account/update_profile_image.json

Parameters

image required

The avatar image for the profile, base64-encoded. Must be a valid GIF, JPG, or PNG image of less than 700 kilobytes in size. Images with width larger than 500 pixels will be scaled down. Animated GIFs will be converted to a static GIF of the first frame, removing the animation.

include_entities optional

The entities node will not be included when set to false.

Example Values: false

skip_status optional

When set to either true, t or 1 statuses will not be included in the returned user objects.

Example Request

POST

https://api.twitter.com/1.1/account/update_profile_image.json

POST Data

image=ABCDEFGH...


  1. {
  2.     "contributors_enabled": false, 
  3.     "created_at": "Thu Aug 23 19:45:07 +0000 2012", 
  4.     "default_profile": false, 
  5.     "default_profile_image": false, 
  6.     "description": "Keep calm and test", 
  7.     "favourites_count": 0, 
  8.     "follow_request_sent": false, 
  9.     "followers_count": 0, 
  10.     "following": false, 
  11.     "friends_count": 10, 
  12.     "geo_enabled": true, 
  13.     "id": 776627022, 
  14.     "id_str": "776627022", 
  15.     "is_translator": false, 
  16.     "lang": "en", 
  17.     "listed_count": 0, 
  18.     "location": "San Francisco, CA", 
  19.     "name": "Sean Test", 
  20.     "notifications": false, 
  21.     "profile_background_color": "000000", 
  22.     "profile_background_image_url": "http://a0.twimg.com/profile_background_images/644522235/cdjlccey99gy36j3em67.jpeg", 
  23.     "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/644522235/cdjlccey99gy36j3em67.jpeg", 
  24.     "profile_background_tile": true, 
  25.     "profile_image_url": "http://a0.twimg.com/profile_images/2550256790/hv5rtkvistn50nvcuydl_normal.jpeg", 
  26.     "profile_image_url_https": "https://si0.twimg.com/profile_images/2550256790/hv5rtkvistn50nvcuydl_normal.jpeg", 
  27.     "profile_link_color": "000000", 
  28.     "profile_sidebar_border_color": "000000", 
  29.     "profile_sidebar_fill_color": "000000", 
  30.     "profile_text_color": "000000", 
  31.     "profile_use_background_image": false, 
  32.     "protected": false, 
  33.     "screen_name": "s0c1alm3dia", 
  34.     "show_all_inline_media": false, 
  35.     "statuses_count": 0, 
  36.     "time_zone": "Pacific Time (US & Canada)", 
  37.     "url": "http://twitter.com", 
  38.     "utc_offset": -28800, 
  39.     "verified": false
  40. }