updateProfileBanner

fun Account.updateProfileBanner(    file: ByteArray,     mediaType: MediaType,     width: Int? = null,     height: Int? = null,     offsetLeft: Int? = null,     offsetTop: Int? = null,     vararg options: Option): EmptyApiAction

Uploads a profile banner on behalf of the authenticating user. More information about sizing variations can be found in User Profile Images and Banners and GET users/profile_banner.

Profile banner images are processed asynchronously. The profile_banner_url and its variant sizes will not necessary be available directly after upload.

Twitter API reference

Receiver

Account endpoint instance.

Return

EmptyApiAction.

Parameters

file

Required. The raw image data being uploaded as the user's new profile banner.

mediaType

Required. The type of file.

width

Optional. The width of the preferred section of the image being uploaded in pixels. Use with height, offsetLeft, and offsetTop to select the desired region of the image to use.

height

Optional. The height of the preferred section of the image being uploaded in pixels. Use with width, offsetLeft, and offsetTop to select the desired region of the image to use.

offsetLeft

Optional. The number of pixels by which to offset the uploaded image from the left. Use with height, width, and offsetTop to select the desired region of the image to use.

offsetTop

Optional. The number of pixels by which to offset the uploaded image from the top. Use with height, width, and offsetLeft to select the desired region of the image to use.

options

Optional. Custom parameters of this request.