Skip to main content
POST
/
create-quest
Create Quest
curl --request POST \
  --url http://dolphinflashcards.com/api/create-quest \
  --header 'Content-Type: application/json' \
  --data '
{
  "jwtToken": "<string>",
  "deadline": "2023-11-07T05:31:56Z",
  "questType": "cards_revised",
  "questSubType": "monthly",
  "quantity": 123
}
'
{
  "message": "Quest created successfully",
  "quest": {
    "quest_id": "<string>",
    "title": "<string>",
    "deadline": "2023-11-07T05:31:56Z",
    "quest_type": "<string>",
    "quest_sub_type": "<string>",
    "quantity": 123,
    "progress": 123,
    "participants": [
      {
        "user_id": "<string>",
        "status": "<string>",
        "progress": 123,
        "isOwner": true
      }
    ]
  }
}

Body

application/json
jwtToken
string
required

JWT token for authentication.

deadline
string<date-time>
required

Deadline for the quest (ISO format).

questType
enum<string>
required

Type of quest.

Available options:
cards_revised,
xp_gained,
time_spent
questSubType
enum<string>
required

Sub type of quest.

Available options:
monthly,
friend
quantity
integer
required

The target quantity for the quest.

Response

Quest created successfully.

message
string
Example:

"Quest created successfully"

quest
object