Zum Hauptinhalt springen

Request a new avatar upload

POST/user/{userId}/avatar/
v2
POST
deprecated-user-service-avatar-request-upload

Request

  • userIdstring (uuid)
    required

Responses

application/json

Avatar upload request was successful. Use the refId to upload your avatar to the /v2/files/:refId

  • refIdstring (uuid)
    required
  • rulesobject
    required
    • maxSizeInKBinteger
      required
    • mimeTypesarray of string
      required
      • Array[
      • *string
      • ]
  • propertiesobject
    • imageDimensionsobject
      • maxobject
        • heightinteger
        • widthinteger
      • minobject
        • heightinteger
        • widthinteger

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/user/f0f86186-0a5a-45b2-aa33-502777496347/avatar