Create Possible Task

This endpoint allows an admin user to create a new possible task.

POST/PossibleTask/CreatePossibleTask

Authorization

AuthorizationRequiredBearer <token>

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

In: header

Query Parameters

Descriptionstring

The description of the task, which must not be empty and cannot exceed 500 characters.

ShortDescriptionstring

The short description of the task, which must not be empty and cannot exceed 50 characters.

Pointsinteger

The point value of the task, which must be greater than zero and not exceed 100.

Format: "int32"
MaxPerPeriodinteger

An optional parameter specifying the maximum number of tasks that can be completed per period. If not provided, it defaults to null.

Format: "int32"
curl -X POST "https://example.com/PossibleTask/CreatePossibleTask?Description=%3Cstring%3E&ShortDescription=%3Cstring%3E&Points=0&MaxPerPeriod=0" \
  -H "Authorization: Bearer <token>"

Returns the created task.

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "description": "string",
  "shortDescription": "string",
  "points": 1,
  "isActive": true,
  "maxPerPeriod": 0
}