Reject Task

This endpoint allows an admin to reject a submitted task.

PUT/SubmittedTask/RejectTask

Authorization

AuthorizationRequiredBearer <token>

Authorization header using the Bearer scheme. Example: "Bearer {token}"

In: header

Query Parameters

TaskIdstring

The ID of the task to reject.

Format: "uuid"
Reasonstring

The reason for rejecting the task.

curl -X PUT "https://example.com/SubmittedTask/RejectTask?TaskId=497f6eca-6276-4993-bfeb-53cbbbba6f08&Reason=%3Cstring%3E" \
  -H "Authorization: Bearer <token>"

Returns the rejected task with its details if the rejection is successful.

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "possibleTaskId": "dec4e134-0e4f-4745-bba5-4adfb532ca18",
  "submittedAt": "2019-08-24T14:15:22Z",
  "committee": "string",
  "imagePath": "string",
  "status": "Pending",
  "points": 1,
  "rejectionReason": "string",
  "maxPerPeriod": 0
}