Skip to main content

Request a Server avatar upload

POST/servers/{serverId}/avatar/
v2
POST
project-request-server-avatar-upload

Request

  • serverIdstring (uuid)
    required

    ID of the Server to request an avatar upload for.

Responses

application/json

OK

  • 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 \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/servers/f0f86186-0a5a-45b2-aa33-502777496347/avatar