Zum Hauptinhalt springen

Get a Token's upload rules

GET/file-token-rules/{token}/
v2
GET
deprecated-file-get-file-token-rules

Deprecated by GET /v2/file-upload-tokens/{fileUploadToken}/rules.

Request

  • tokenstring (uuid)
    required

    Token of the Token'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-token-rules/3fa85f64-5717-4562-b3fc-2c963f66afa6