Submit Task

This endpoint allows users to submit a task for a committee.

POST/SubmittedTask/SubmitTask

Authorization

AuthorizationRequiredBearer <token>

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

In: header

Request Body

multipart/form-dataOptional
TaskIdRequiredstring

The unique identifier for the task being submitted. This property is required and indicates which possible task the submission relates to.

Format: "uuid"
CommitteeRequiredstring

The name of the committee to which the task is being submitted. This property is required and indicates which committee the task is being submitted to for review.

ImageRequiredfile

The image file associated with the task submission. This property is required and represents the image that the user uploads as part of the task submission process. It is expected to be an IFormFile, which allows for file uploads in ASP.NET Core applications.

Format: "binary"
curl -X POST "https://example.com/SubmittedTask/SubmitTask" \
  -H "Authorization: Bearer <token>" \
  -F TaskId="b3d8ce70-cf1f-4149-9551-87b990d03d9a" \
  -F Committee="string" \
  -F Image="string"

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