challenge-api
challenge-api copied to clipboard
Issue with phases
trafficstars
In PUT/PATCH, we expect the phaseId to be passed… which means, there’s no way to add more phases to a challenge. You can only update the existing ones.
So, you can’t add multiple iterative review phases for example.
We need to add support for both phaseId and id. If the id is provided, the existing phase will be updated. If the phaseId is provided, a new phase will be created