We have recently identified an issue with consistency between different upload experiences across Acquia DAM.
This change affects asset uploads via version 2.0 of the API that match the following conditions:
Currently, v2.0 of the API will replace the metadata type on the existing asset with the metadata type associated with the upload profile.
To be more consistent with v1.0 of the API and other asset upload methods available across Acquia DAM, we are changing this behavior to retain the existing metadata type.
Only version 2.0 of the API is affected.
Here is the API endpoint that will be updated:
POST /v2/assetsYou can test this change in behavior now before it goes live by making use of an early access toggle. When making requests to the affected resource listed above, the following header can be supplied, which will ensure the new upload behavior is applied:
x-widen-api-toggle: conflicted-upload-metadata-typeFor example, when uploading an asset:
curl --request POST \
--url 'https://api.widencollective.com/v2/assets' \
--header 'authorization: Bearer wat_demo_abc123def456' \
--header 'x-widen-api-toggle: conflicted-upload-metadata-type' \
--header 'content-type: multipart/form-data' \
--data-binary '{form data goes here}'Currently available for testing, the full release is scheduled for Tuesday, June 06, 2023 at 11 a.m., CT.