Skip to main content
PATCH
/
x
/
profile
/
banner
Update banner
curl --request PATCH \
  --url https://api.example.com/x/profile/banner \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account": "<string>",
  "file": {}
}
'
10 credits per call · All plans from $0.00012/credit
curl -X PATCH https://xquik.com/api/v1/x/profile/banner \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -F "account=myxaccount" \
  -F "file=@banner.png" | jq

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be multipart/form-data. Set automatically by most HTTP clients when using FormData.

Body (FormData)

account
string
required
X username or account ID of your connected account to act as.
file
binary
required
The image file to upload. Accepted formats: GIF, JPEG, PNG. Maximum file size: 2 MB.

Response

success
boolean
Always true on success.
{
  "success": true
}
Related: Update Avatar to change the profile picture, or Update Profile to update name, bio, and other text fields.