Skip to navigation

Upload User Avatar

View as Markdown

Uploads and stores the customer’s avatar.

Multipart field: avatar required file.

Response fields: message.

Possible errors:

  • 400: Invalid file type - avatar must be JPEG, PNG, or WEBP.
  • 400: No file found - multipart request did not include avatar.
  • 400: Error uploading image - S3 upload did not return an avatar URL.
  • 502: Image upload failed - upstream image/S3 processing failed.
  • 400: Missing One or More Required Parameters - required body/query fields were not supplied.
  • 401: Unauthorized - token is missing, expired, invalid, or the account/token pair was not found.
  • 403: Access denied - gateway traffic guard/rate policy blocked the request.
  • 429: Too many requests - gateway rate limit exceeded.
  • 500: Unexpected Error - unhandled gateway or downstream service failure.

Request

This endpoint expects a multipart form containing a file.
avatarfileRequired

Response

OK
key_0integer
key_1string
key_2double
key_3string
key_4boolean

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error