Skip to content
NTOMA
Esc
↑↓navigate↵open⌘Jpreview

Finish an avatar upload

Verifies the object exists before pointing the profile at it, so a failed PUT cannot leave a broken image URL.

POST/api/auth/user/avatar-upload/complete
Authorization
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
object
Responses
403Invalid avatar key
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "http://localhost:8000/api/auth/user/avatar-upload/complete" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response
Invalid avatar key