Approve Task

This endpoint allows an admin to approve a submitted task.

PUT/SubmittedTask/ApproveTask

Authorization

AuthorizationRequiredBearer <token>

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

In: header

Query Parameters

TaskIdstring

The ID of the task to approve.

Format: "uuid"
Pointsinteger

The number of points to award for the approved task.

Format: "int32"
MaxPerPeriodinteger

The maximum points that can be awarded per period for this task. This parameter is optional.

Format: "int32"
curl -X PUT "https://example.com/SubmittedTask/ApproveTask?TaskId=497f6eca-6276-4993-bfeb-53cbbbba6f08&Points=0&MaxPerPeriod=0" \
  -H "Authorization: Bearer <token>"

Returns the approved task with its details if the approval 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
}