Misleading API docs for /api/v1/projects/{slug}/upload #1408
Labels
1. api
This issue/pr relates to an issue/change on the api
1. documentation
Improvements or additions to documentation
Observed/problematic behavior
The documentation for
/api/v1/projects/{slug}/upload
fails to mark several fields as required in theversionUpload
part and there is no error handling for this with the API responding with a status code of500
with a generic message as opposed to the correct status of400
with an appropriate message.Expected behavior
The documentation should mark all required fields as required, and the API should return an appropriate status code and error message if any required fields are missing or invalid.
Steps to reproduce
/api/v1/projects/{slug}/upload
with the minimum required payload stipulated by the documentation500
Other
No response
The text was updated successfully, but these errors were encountered: