Get Rejected Tasks

This endpoint retrieves all rejected tasks from the database.

GET/SubmittedTask/GetRejectedTasks

Authorization

AuthorizationRequiredBearer <token>

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

In: header

Query Parameters

pageinteger

The page number to retrieve.

Format: "int32"
pageSizeinteger

The number of items to retrieve per page. This parameter is optional and defaults to 5.

Default: 5Format: "int32"
committeestring

The name of the committee to filter the tasks by. This parameter is optional.

curl -X GET "https://example.com/SubmittedTask/GetRejectedTasks?page=0&pageSize=5&committee=%3Cstring%3E" \
  -H "Authorization: Bearer <token>"

Returns a list of rejected tasks.

{
  "pageAmount": 0,
  "items": [
    {
      "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
    }
  ]
}