Zum Hauptinhalt springen

Breaking (!) API changes for v2 API, September 6, 2024

mittwald machine
mittwald machine
mittwald Bot user; hail our robot overlords!

On September 6, 2024, the mittwald API introduced several changes, including updates to request parameter types for project IDs, the addition of required properties in responses, and new optional query parameters for enhanced search functionality.

Summary

  • The type/format of the 'path' request parameter 'projectId' has been changed from 'string' to 'string'/'uuid' for the following operations:

    • GET /v2/projects/{projectId}/delivery-boxes (List DeliveryBoxes belonging to a Project)
    • GET /v2/projects/{projectId}/mail-addresses (List MailAddresses belonging to a Project).
    • This is a breaking change that was made in error and will be reverted shortly. We apologize for any inconvenience this may have caused.
  • The required property 'maxSizeInKb' has been added to the response with the '200' status for the following operations:

    • GET /v2/file-token-rules/{token} (Get a Token's upload rules)
    • GET /v2/file-type-rules/{name} (Get a Type's upload rules)
    • GET /v2/file-upload-tokens/{fileUploadToken}/rules (Get a FileUploadToken's rules)
    • GET /v2/file-upload-types/{fileUploadType}/rules (Get a FileUploadType's rules).
  • The required property 'friendlyUrl' has been added to the response for the following operations:

    • POST /v2/files (Create a File) with the '201' status
    • GET /v2/files/{fileId}/meta (Get a File's meta) with the '200' status.
  • A new optional 'query' request parameter 'search' has been added for the following operations:

    • GET /v2/projects/{projectId}/delivery-boxes (List DeliveryBoxes belonging to a Project)
    • GET /v2/projects/{projectId}/mail-addresses (List MailAddresses belonging to a Project).

Disclaimer: This summary is AI-generated. If you find any discrepancies, please refer to the detailed changes below.

Detailed changes

Changes in "List delivery boxes belonging to a Project"

  • ⚠️ Breaking: for the 'path' request parameter 'projectId', the type/format was changed from 'string'/'' to 'string'/'uuid'

  • added the new optional 'query' request parameter 'search'

For details, refer to the GET/v2/projects/{projectId}/delivery-boxes/ endpoint.

Changes in "List mail addresses belonging to a Project"

  • ⚠️ Breaking: for the 'path' request parameter 'projectId', the type/format was changed from 'string'/'' to 'string'/'uuid'

  • added the new optional 'query' request parameter 'search'

For details, refer to the GET/v2/projects/{projectId}/mail-addresses/ endpoint.

Changes in "Get a Token's upload rules"

  • added the required property 'maxSizeInKb' to the response with the '200' status

For details, refer to the GET/v2/file-token-rules/{token}/ endpoint.

Changes in "Get a Type's upload rules"

  • added the required property 'maxSizeInKb' to the response with the '200' status

For details, refer to the GET/v2/file-type-rules/{name}/ endpoint.

Changes in "Get a FileUploadToken's rules"

  • added the required property 'maxSizeInKb' to the response with the '200' status

For details, refer to the GET/v2/file-upload-tokens/{fileUploadToken}/rules/ endpoint.

Changes in "Get a FileUploadType's rules"

  • added the required property 'maxSizeInKb' to the response with the '200' status

For details, refer to the GET/v2/file-upload-types/{fileUploadType}/rules/ endpoint.

Changes in "Create a File"

  • added the required property 'friendlyUrl' to the response with the '201' status

For details, refer to the POST/v2/files/ endpoint.

Changes in "Get a File's meta"

  • added the required property 'friendlyUrl' to the response with the '200' status

For details, refer to the GET/v2/files/{fileId}/meta/ endpoint.

Client package releases

mittwald PHP SDK v2.1.59 Release Summary

The mittwald PHP SDK has been updated to version 2.1.59. This release includes several new features, enhancements, changes, and bug fixes aimed at improving the usability and functionality of the SDK.

Features Added

  • User-Friendly File Retrieval: The method description for retrieving files now specifies support for user-friendly URLs, enhancing clarity on file access.

Enhancements

  • UUID Format for Project IDs: The projectId field in ListDeliveryBoxesRequest and ListMailAddressesRequest now includes a UUID format, improving structure and validation.
  • Search Functionality: A search parameter has been introduced in ListDeliveryBoxesRequest and ListMailAddressesRequest, enabling users to filter results based on a search query.

Changes

  • FileMeta Property Update: The friendlyURL property is now deprecated in favor of friendlyUrl, promoting a clearer naming convention.
  • Deprecation Handling: Several properties, such as maxSizeInKb in FileUploadRules, have been marked as deprecated to promote future-proofing and standardization.

Bug Fixes

  • Consistent Method Naming: Method names within FileMeta have been updated for consistent casing and naming conventions, improving code readability.
  • Property Behavior Fixes: Getters and setters now properly reflect the current state of properties, especially with search functionality.

For more details, visit the release page.