Skip to main content

Get a Type's upload rules

GET/file-type-rules/{name}/
v2
GET
deprecated-file-get-file-type-rules

Deprecated by GET /v2/file-upload-types/{fileUploadType}/rules.

Request

  • namestring (one of: avatar, conversation)
    required

    Name of the Type's upload rules to be retrieved.

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-type-rules/avatar