Skip to main content

Get a FileUploadType's rules

GET/file-upload-types/{fileUploadType}/rules/
v2
GET
file-get-file-upload-type-rules

Request

  • fileUploadTypestring (one of: avatar, conversation)
    required

    FileUploadType to retrieve rules for.

Responses

application/json

OK

  • extensionsarray of string
    required
    • Array[
    • *string
    • ]
  • fileTypesarray of object
    required
    • Array[
    • *object
      • extensionsarray of string
        required
        • Array[
        • *string
        • ]
    • mimeTypestring
      required
  • ]
  • maxSizeInBytesinteger
    required
  • maxSizeInKBinteger
    required

    deprecated, see maxSizeInBytes

  • maxSizeInKbinteger
    required

    deprecated, see maxSizeInBytes

  • mimeTypesarray of string
    required
    • Array[
    • *string
    • ]
  • propertiesobject
    • imageDimensionsobject
      • maxobject
        • heightinteger
        • widthinteger
      • minobject
        • heightinteger
        • widthinteger
  • Usage examples

    $ curl \
    --fail \
    --location \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    https://api.mittwald.de/v2/file-upload-types/avatar/rules