Register
Submit a solution
The challenge is finished.

Challenge Overview

For this challenge, we'd like to add another endpoint for updating challenges, similar as save draft challenge.

1. The endpoint should be PUT  /challenges/{id}
2. The input request should be similar as Save Draft challenge API (POST /challenges)
3. The response should be properly show the success or error.
3.1 If there is no such challenge id, return 404 error
3.2 If there is any invalid value in request, return 400 error
3.3 if success, return 200 status code.
3.4 or other status code, if appliable.
4. The update should properly handle the update for each field. You can verify this in direct app.
5. You can reference the implementation of Save Draft challenge api, and reuse the logic.
6. For subTrack field, let's limit that to be only changable in the same category, like Design, Development category.

How To Test
 - Postman scripts in /docs should be updated or created for testing the functionality.
 - Please use direct app to verify the challenge is properly updated.

Local Setup
- Please follow Build and Run with Docker compose to build and run direct app and online review locally
- Follow the README.md file to build and start the challenge service.

Final Submission Guidelines

- Code change 
- Verification Steps

ELIGIBLE EVENTS:

2017 TopCoder(R) Open

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30057693