Zum Hauptinhalt springen

Request a new avatar upload for the customer profile

POST/customers/{customerId}/avatar/
v2
POST
customer-request-avatar-upload

Request

  • customerIdstring
    required

    The uuid of the customer for whom an avatar upload is to be requested

Responses

application/json

Avatar request was successful. Use the refId to upload your avatar to the file service.

  • 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/customers/string/avatar