Skip to main content

Get a FileUploadToken's rules

GET/file-upload-tokens/{fileUploadToken}/rules/
v2
GET
file-get-file-upload-token-rules

Request

  • fileUploadTokenstring (uuid)
    required

    FileUploadToken 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-tokens/3fa85f64-5717-4562-b3fc-2c963f66afa6/rules