set_profile_photo

POST https://api.dropboxapi.com/2/account/set_profile_photo

setprofilephoto

scope: account_info.write

Sets a user's profile photo.

Request Body

{"photo"=>{".tag"=>"base64_data", "base64_data"=>"SW1hZ2UgZGF0YSBpbiBiYXNlNjQtZW5jb2RlZCBieXRlcy4gTm90IGEgdmFsaWQgZXhhbXBsZS4="}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Dropbox-API-Path-Rootstring
Dropbox-API-Select-Userstring

RESPONSES

status: OK

{"profile_photo_url":"https://dl-web.dropbox.com/account_photo/get/dbaphid%3AAAHWGmIXV3sUuOmBfTz0wPsiqHUpBWvv3ZA?vers=1556069330102\u0026size=128x128"}