From 1ac10ff6c0f1528f1a068055461b97f655ded5f1 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 8 Aug 2020 13:26:46 -0400 Subject: [PATCH] add reset last submission route information --- docs/microservices/users.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/microservices/users.md b/docs/microservices/users.md index fd39d6a..9e4c5e9 100644 --- a/docs/microservices/users.md +++ b/docs/microservices/users.md @@ -227,6 +227,23 @@ Appends problemSet to the user's list of problemSets | 422 | Missing or invalid userId/problemSetId in body | | 500 | Internal server error | +> PATCH /users/{userId}/resetLastSubmission + +Resets the codeforces `lastSubmission` field for a user + +**Params** + +- `userId`: ID for user to update + +**Responses** + +| Status | Response | +| --- | --- | +| 200 | User | +| 404 | User not found | +| 422 | Missing or invalid userId | +| 500 | Internal server error | + > PATCH /users/resetLastSubmissions Resets the codeforces `lastSubmission` field for all users