Skip to main content
PATCH
/
twitter
/
update_avatar_v2
cURL
curl --request PATCH \
  --url https://api.twitterapi.io/twitter/update_avatar_v2 \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form file='@example-file' \
  --form 'proxy=<string>' \
  --form 'login_cookies=<string>'
{
  "status": "<string>",
  "message": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data
file
file
required

The avatar image file to upload. Recommended size: 400x400 pixels. Maximum file size: 700KB. Supported formats: JPG, PNG

proxy
string
required

The proxy to use. Please use high-quality residential proxies and avoid free proxies. Required. Example: http://username:password@ip:port

login_cookies
string
required

The login cookies of the user. You can get the login_cookie from /twitter/user_login_v2. Required

Response

Update avatar response

status
string

Status of the request. success or error

message
string

Message of the request. e.g. Avatar updated successfully