Collection PUT is no longer accepting form file input

Previously I was using the following curl command to update my collection in my CI tool.

curl \
--location \
--request PUT "https://api.getpostman.com/collections/{{POSTMAN_COLLECTION}}" \
--header "X-Api-Key: {{POSTMAN_API_KEY}}" \
--form "type=file" \
--form "input=@dist/Postman.json" 

However now Iā€™m finding that this call returns:

{
  "error": {
    "name": "paramMissingError",
    "message": "Parameter is missing in the request.",
    "details": {
        "param": "collection"
    }
  }
}

The reason Iā€™m going with form data here is because the Postman Collection Iā€™m uploading is quite large. (917kb)

I tried converting the command to use --data-raw however that returns a server error after 2 minutes.

Did the API endpoint change to no longer accept form inputs?

Ended up switching the command around to use data-binary.

curl --location --request PUT 'https://api.getpostman.com/collections/{{collection}}' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: {{key}}' \
--data-binary '@dist/Postman.json'