Upload User Avatar
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.
avatar
Response
OK
key_0
key_1
key_2
key_3
key_4
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error