ProjectMilestones: Setting start_date via the API requires a second parameter
Summary
When setting or removing the start_date of a porject milestone via the API, the request requires a second parameter
Steps to reproduce
>>> curl --request PUT --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.com/api/v4/projects/gitmate-test-user%2Ftest/milestones/532847?start_date=2018-05-25" # Setting start_date without a second parameter
{"error":"title, description, due_date, state_event are missing, at least one parameter must be provided"}
>>> curl --request PUT --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.com/api/v4/projects/gitmate-test-user%2Ftest/milestones/532847?due_date=2020-05-25" # Setting start_date using a second parameter
{"id":532847,"iid":2,"project_id":3439658,"title":"Temporary Test Milestone using Curl","description":"Temporary Test Milestone to test put request on due_date and start_date","state":"active","created_at":"2018-05-24T12:28:37.432Z","updated_at":"2018-05-24T12:44:45.986Z","due_date":"2020-05-25","start_date":null}
>>> curl --request PUT --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.com/api/v4/projects/gitmate-test-user%2Ftest/milestones/532847?start_date=2019-05-25" # Trying to change the start_date without a second parameter
{"error":"title, description, due_date, state_event are missing, at least one parameter must be provided"}
>>> curl --request PUT --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.com/api/v4/projects/gitmate-test-user%2Ftest/milestones/532847?start_date=" # Trying to delete the start_date without a second parameter
{"error":"title, description, due_date, state_event are missing, at least one parameter must be provided"}
>>> curl --request PUT --header "PRIVATE-TOKEN: TOKEN" "https://gitlab.com/api/v4/projects/gitmate-test-user%2Ftest/milestones/532847?start_date=&due_date=2020-05-25" # Deleting the start_date using a second parameter
{"id":532847,"iid":2,"project_id":3439658,"title":"Temporary Test Milestone using Curl","description":"Temporary Test Milestone to test put request on due_date and start_date","state":"active","created_at":"2018-05-24T12:28:37.432Z","updated_at":"2018-05-24T12:54:35.960Z","due_date":"2020-05-25","start_date":null}
Example Project
%Temporary Test Milestone using Curl in gitmate-test-user/test
https://gitlab.com/api/v4/projects/gitmate-test-user%2Ftest/milestones/532847
What is the current bug behavior?
The start_date can only be set / deleted when a second parameter is being passed
What is the expected correct behavior?
Setting / deleting the start_date without passing an additional parameter