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?